Skip to content

Commit

Permalink
docs(api): remove "async" to header getter
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Aug 12, 2024
1 parent 744c75d commit 7064f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .changeset/purple-pans-shout.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ const instance = new XrpcClient(
```

If you need the headers or service url to be dynamic, you can define them using
(`async`) functions:
functions:

```ts
import { XrpcClient } from '@atproto/xrpc'
Expand All @@ -577,7 +577,7 @@ const instance = new XrpcClient(
service: () => 'http://my-service.com',
headers: {
'my-header': () => 'my-value',
'my-ignored-header': async () => null, // ignored
'my-ignored-header': () => null, // ignored
},
},
[
Expand Down

0 comments on commit 7064f5a

Please sign in to comment.