Skip to content

Commit

Permalink
Fix headings in xhr.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon committed May 13, 2024
1 parent 7a9eb87 commit 0469ea9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/uploader/xhr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ by browsers, so it’s recommended to use one of those.
Indicates whether cross-site Access-Control requests should be made using
credentials (`boolean`, default: `false`).

### `onBeforeRequest`
#### `onBeforeRequest`

An optional function that will be called before a HTTP request is sent out
(`(xhr: XMLHttpRequest, retryCount: number) => void | Promise<void>`).

### `shouldRetry`
#### `shouldRetry`

An optional function called once an error appears and before retrying
(`(xhr: XMLHttpRequesT) => boolean`).
Expand All @@ -229,7 +229,7 @@ behavior uses
[exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff) with a
maximum of 3 retries.

### `onAfterResponse`
#### `onAfterResponse`

An optional function that will be called after a HTTP response has been received
(`(xhr: XMLHttpRequest, retryCount: number) => void | Promise<void>`).
Expand Down

0 comments on commit 0469ea9

Please sign in to comment.