Interface ClientRequest<Req>

interface ClientRequest<Req> {
    body?: Req;
    contentType?: string;
    headers?: Record<string, any>;
    method: "GET" | "POST";
    overrides?: ClientHeadersType & {
        API_KEY?: string;
        WITH_CREDENTIALS?: boolean;
    } & {
        AUTH_TOKEN?: string;
    };
    params?: any;
    url: string;
}

Type Parameters

  • Req

Properties

body?: Req
contentType?: string
headers?: Record<string, any>
method: "GET" | "POST"
overrides?: ClientHeadersType & {
    API_KEY?: string;
    WITH_CREDENTIALS?: boolean;
} & {
    AUTH_TOKEN?: string;
}

Type declaration

  • Optional API_KEY?: string
  • Optional WITH_CREDENTIALS?: boolean

Type declaration

  • Optional AUTH_TOKEN?: string
params?: any
url: string

Generated using TypeDoc