FoxoChat.js Packages
    Preparing search index...

    Interface RequestOptions

    Represents the data that will be sent to the endpoint.

    interface RequestOptions {
        authPrefix?: string;
        body?: RequestBody;
        bodyType?: RequestBodyType;
        enforceAuth?: boolean;
        headers?: Record<string, string>;
        params?: URLSearchParams;
        useAuth?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    authPrefix?: string

    The authorization prefix to use for this request.

    The body to send in this request.

    bodyType?: RequestBodyType

    Type of passed body.

    enforceAuth?: boolean

    If this request requires the Authorization token.

    headers?: Record<string, string>

    Additional headers to add to this request.

    params?: URLSearchParams

    The URL query parameters to be sent with the request

    useAuth?: boolean

    If this request needs the Authorization header.