Skip to content
Snippets Groups Projects
Unverified Commit 40980355 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

docs: concurrentRequestLimit and hostType (#17713)

parent 7232f714
No related branches found
No related tags found
No related merge requests found
...@@ -1139,13 +1139,16 @@ Example config: ...@@ -1139,13 +1139,16 @@ Example config:
{ {
"hostRules": [ "hostRules": [
{ {
"matchHost": "github.com", "matchHost": "api.github.com",
"concurrentRequestLimit": 2 "concurrentRequestLimit": 2
} }
] ]
} }
``` ```
Use an exact host for `matchHost` and not a domain (e.g. `api.github.com` as shown above and not `github.com`).
Do not combine with `hostType` in the same rule or it won't work.
### dnsCache ### dnsCache
Enable got [dnsCache](https://github.com/sindresorhus/got/blob/v11.5.2/readme.md#dnsCache) support. Enable got [dnsCache](https://github.com/sindresorhus/got/blob/v11.5.2/readme.md#dnsCache) support.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment