Interface ClientRequest<Req>

interface ClientRequest<Req> {
    body?: Req;
    contentType?: string;
    headers?: Record<string, any>;
    method: "GET" | "POST";
    originMethod?: string;
    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"
originMethod?: string
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