Skip to content

Commit

Permalink
docs: more
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Aug 27, 2024
1 parent 02c5c3d commit 60a0c86
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
21 changes: 21 additions & 0 deletions docs/userguides/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,27 @@ request_header:
Content-Type: application/json
```
You can also typically specify request headers at the ecosystem, network, and provider levels:
```yaml
# NOTE: All the headers are the same only for demo purposes.
# You can use headers you want for any of these config locations.
ethereum:
# Apply to all requests made to ethereum networks.
request_headers:
Content-Type: application/json

mainnet:
# Apply to all requests made to ethereum:mainnet (using any provider)
request_headers:
Content-Type: application/json

node:
# Apply to any request using the `node` provider.
request_headers:
Content-Type: application/json
```
## Testing
Configure your test accounts:
Expand Down
9 changes: 6 additions & 3 deletions docs/userguides/networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,16 @@ request_header:
Top-Level: "UseThisOnEveryRequest"
ethereum:
request_header: "UseThisOnEveryEthereumRequest"
request_header:
Ecosystem-Level: "UseThisOnEveryEthereumRequest"
mainnet:
request_header: "UseThisOnAllRequestsToEthereumMainnet"
request_header:
Network-Level: "UseThisOnAllRequestsToEthereumMainnet"
node:
request_header: "UseThisOnAllRequestsUsingNodeProvider"
request_header:
Provider-Level: "UseThisOnAllRequestsUsingNodeProvider"
```

## Local Network
Expand Down

0 comments on commit 60a0c86

Please sign in to comment.