AngularTS
    Preparing search index...

    Interface HttpRequestConfig

    Full request configuration accepted by $http(...).

    interface HttpRequestConfig {
        cache?: HttpCacheOption;
        credentials?: RequestCredentials;
        data?: unknown;
        headers?: HttpRequestConfigHeaders;
        method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
        params?: HttpParams;
        paramSerializer?: string | ((obj: HttpParams) => string);
        responseType?: string;
        signal?: AbortSignal;
        timeout?: number;
        transformRequest?: HttpRequestTransformer | HttpRequestTransformer[];
        transformResponse?: HttpResponseTransformer | HttpResponseTransformer[];
        url: string;
        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.

    method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"

    HTTP verb to use for the request.

    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.

    url: string

    Request URL. Query parameters from params are appended to this URL.

    xsrfCookieName?: string

    Cookie name used when reading the XSRF token.

    xsrfHeaderName?: string

    Header name used when sending the XSRF token.