Webigail
    Preparing search index...

    Interface IZHttpRequest<TBody>

    Represents a http request.

    interface IZHttpRequest<TBody = any> {
        body?: TBody;
        headers?: Record<string, string>;
        method: ZHttpMethod;
        timeout?: number;
        url: string;
    }

    Type Parameters

    • TBody = any
    Index

    Properties

    body?: TBody

    The post body.

    Only should really be used for POST style calls which accept a body.

    headers?: Record<string, string>

    Request headers.

    method: ZHttpMethod

    The method, or verb, to invoke the request with.

    timeout?: number

    The timeout before the rest method fails

    url: string

    The url to target.