AngularTS
    Preparing search index...

    Interface HttpDefaults

    Default request settings configured through app.config({ $http }) and exposed at runtime through $http.defaults.

    Only the settings declared here are read from service-level defaults. Set timeout, signal, and responseType on individual requests instead.

    interface HttpDefaults {
        cache?: HttpCacheOption;
        credentials?: RequestCredentials;
        headers?: HttpRequestConfigHeaders;
        paramSerializer?: string | ((obj: HttpParams) => string);
        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".

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

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

    Query parameter serializer token or function.

    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.