method
RiduClient.request
Dispatch a raw same-origin request to an application-authored custom endpoint.
Arguments
| Argument | Type | Description |
|---|---|---|
path | string | The path value. |
init | RequestInit | | The init value. |
options | RequestOptions | | The options value. |
Returns
The declared result.
Promise<Response>How it works
Only an absolute path on the configured Ridu origin is accepted; network paths, full URLs, and fragments are rejected before dispatch.
The raw Response is returned for every HTTP status. No JSON content type is added implicitly, so the caller retains complete request and response control.
The request still uses configured credentials, merged headers, middleware, abort signals, and keepalive behavior.
Full signature
RiduClient.request(
path: string,
init?: RequestInit,
options?: RequestOptions,
): Promise<Response>Related types
RequestOptionsOptions shared by every request.