method

RiduClient.request

Dispatch a raw same-origin request to an application-authored custom endpoint.

Arguments

ArgumentTypeDescription
pathstringThe path value.
initRequestInit | undefinedThe init value.
optionsRequestOptions | undefinedThe 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>

Source packages/sdk/src/types.ts:914

Related types