Add arrayBuffer support to fetchNative and update documentation

This commit is contained in:
Kwaroran
2024-12-21 01:29:45 +09:00
parent 219042f8ad
commit 709f45fa59
2 changed files with 27 additions and 2 deletions

View File

@@ -67,6 +67,7 @@ Fetches a URL with the native API, which doesn't have CORS restrictions. this AP
- `status: number` - The response status.
- `json: () => Promise<any>` - A function that returns a promise that resolves to the JSON representation of the response body.
- `text: () => Promise<string>` - A function that returns a promise that resolves to the text representation of the response body.
- `arrayBuffer: () => Promise<ArrayBuffer>` - A function that returns a promise that resolves to the ArrayBuffer representation of the response body.
### `getArg(name: string): string|number`