English
http_clients — HTTP clients
Named HTTP clients through which remote rule-sets are downloaded. They are needed when a download needs its own headers, TLS settings or outbound.
yaml
http_clients:
lists:
detour: proxy
headers:
User-Agent: my-router
tls:
utls:
fingerprint: chrome
rule_sets:
ads:
remote:
url: https://example.org/ads.srs
http_client: lists
route:
final:
outbound: direct
default_http_client: listsThe key is the client's name.
| Field | Meaning |
|---|---|
detour | The outbound or group the requests go through. Without it, the outbound from route.final |
headers | Headers of every request |
tls | TLS settings for https://, the outbound tls block |
version | The HTTP version: 1, 2 (default), 3. Requests always use HTTP/1.1: 2 and 3 fall back to it |
disable_version_fallback | Forbid the version fallback. With version 2 or 3 it is a load error |
engine | Only go (default) |
Who uses a client:
- a rule-set with
http_client: <name>; - all remote rule-sets without a client of their own and without
via, ifroutehasdefault_http_client: <name>. Withoutdefault_http_client, the first client inhttp_clientsis the default.
A client can also be described right in a rule-set: http_client: {detour: proxy}.
Only detour is supported among connection fields; others (interface, mark and so on) are a load error.
Subscriptions are downloaded by their own client and do not use http_clients.