Represents the data that will be sent to the endpoint.

interface RequestOptions<B = unknown, Q = unknown> {
    authPrefix?: string;
    body?: B;
    enforceAuth?: boolean;
    headers?: Record<string, string>;
    query?: Q;
    useAuth?: boolean;
}

Type Parameters

  • B = unknown
  • Q = unknown

Hierarchy (View Summary)

Properties

authPrefix?: string

The authorization prefix to use for this request.

body?: B

The body to send in this request.

enforceAuth?: boolean

If this request requires the Authorization token.

headers?: Record<string, string>

Additional headers to add to this request.

query?: Q

The URL query parameters to be sent with the request

useAuth?: boolean

If this request needs the Authorization header.