* Used as a callback for mutating the given `RequestInit` object. * * This is useful for cases where you want to add certain headers based off of * the request properties, e.g. `method` or `url`.
(
request: RequestInit,
{ url, options }: { url: string; options: FinalRequestOptions },
)
| 706 | * the request properties, e.g. `method` or `url`. |
| 707 | */ |
| 708 | protected async prepareRequest( |
| 709 | request: RequestInit, |
| 710 | { url, options }: { url: string; options: FinalRequestOptions }, |
| 711 | ): Promise<void> {} |
| 712 | |
| 713 | get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> { |
| 714 | return this.methodRequest('get', path, opts); |