AngularTS
    Preparing search index...

    Interface HttpRequestOptions

    Request options shared by the $http shorthand methods.

    interface HttpRequestOptions {
        cache?: HttpCacheOption;
        credentials?: RequestCredentials;
        data?: unknown;
        headers?: HttpRequestConfigHeaders;
        params?: HttpParams;
        paramSerializer?: string | ((obj: HttpParams) => string);
        responseType?: string;
        signal?: AbortSignal;
        timeout?: number;
        transformRequest?: HttpRequestTransformer | HttpRequestTransformer[];
        transformResponse?: HttpResponseTransformer | HttpResponseTransformer[];
        xsrfCookieName?: string;
        xsrfHeaderName?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cache?: HttpCacheOption

    GET caching: true enables the URL cache; a strategy selects strategy-aware caching.

    credentials?: RequestCredentials

    Fetch credential mode. Defaults to "same-origin".

    data?: unknown

    Request body. Objects and arrays are JSON serialized by default; File, Blob, and FormData are passed through. For browser-generated content headers, override the default with headers: { "Content-Type": undefined }. Shorthand methods with an explicit body set this field automatically.

    Default headers grouped by method and merged into each request case-insensitively.

    params?: HttpParams

    Query parameters appended to the request URL.

    paramSerializer?: string | ((obj: HttpParams) => string)

    Query parameter serializer token or function.

    responseType?: string

    Response body reader: text (default), json, blob, arraybuffer, document, or stream. Default response transforms still apply; set transformResponse: [] to preserve raw text. Stream responses skip implicit transforms.

    signal?: AbortSignal

    Native cancellation signal. Aborting it rejects with transportStatus: "abort".

    timeout?: number

    Timeout in milliseconds. Positive values abort with transportStatus: "timeout"; zero or negative values disable the timer. Covers response body reading except when responseType: "stream" hands the body to the caller.

    Request body transform pipeline.

    Response body transform pipeline.

    xsrfCookieName?: string

    Cookie name used when reading the XSRF token.

    xsrfHeaderName?: string

    Header name used when sending the XSRF token.