ProtectedafterThis method is called after the response is received. It can be used to process or inspect the response before returning it.
The response object that was received.
A promise that resolves to the (possibly processed) response.
ProtectedbeforeThis method is called before the request is sent. It can be used to modify the request before it is sent (e.g., adding headers).
The request object that will be sent.
A promise that resolves to the (possibly modified) request.
Sends a DELETE request to the specified path.
The path to send the request to, relative to baseURL.
Optionalinit: Omit<RequestInit<CfProperties<unknown>>, "method">Optional request options, excluding the HTTP method.
A promise that resolves to the response from the request.
Sends a fetch request to the specified path, using the provided
RequestInit options.
The path to send the request to, relative to baseURL.
Optionalinit: RequestInit<CfProperties<unknown>>Optional request options.
A promise that resolves to the response from the request.
Sends a GET request to the specified path.
The path to send the request to, relative to baseURL.
Optionalinit: Omit<RequestInit<CfProperties<unknown>>, "method">Optional request options, excluding the HTTP method.
A promise that resolves to the response from the request.
Sends a PATCH request to the specified path.
The path to send the request to, relative to baseURL.
Optionalinit: Omit<RequestInit<CfProperties<unknown>>, "method">Optional request options, excluding the HTTP method.
A promise that resolves to the response from the request.
Sends a POST request to the specified path.
The path to send the request to, relative to baseURL.
Optionalinit: Omit<RequestInit<CfProperties<unknown>>, "method">Optional request options, excluding the HTTP method.
A promise that resolves to the response from the request.
Sends a PUT request to the specified path.
The path to send the request to, relative to baseURL.
Optionalinit: Omit<RequestInit<CfProperties<unknown>>, "method">Optional request options, excluding the HTTP method.
A promise that resolves to the response from the request.
Statichash
The base URL for all API requests. Must be defined in subclasses.