AngularTS
    Preparing search index...

    Interface HttpDefaults

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

    Not every HttpRequestOptions field is supported here; this shape only includes the fields that the runtime reads from provider-level defaults.

    https://docs.angularjs.org/api/ng/service/$http#defaults https://docs.angularjs.org/api/ng/service/$http#usage

    interface HttpDefaults {
        cache?: HttpCacheOption;
        headers?: HttpRequestConfigHeaders;
        paramSerializer?: string | ((obj: HttpParams) => string);
        transformRequest?: HttpRequestTransformer | HttpRequestTransformer[];
        transformResponse?: HttpResponseTransformer | HttpResponseTransformer[];
        withCredentials?: boolean;
        xsrfCookieName?: string;
        xsrfHeaderName?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cache?: HttpCacheOption

    Cache used for cacheable requests. true enables the default cache.

    Default headers merged into each request.

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

    Query parameter serializer token or function.

    Request body transform pipeline.

    Response body transform pipeline.

    withCredentials?: boolean

    Whether cross-site requests should include credentials by default.

    xsrfCookieName?: string

    Cookie name used when reading the XSRF token.

    xsrfHeaderName?: string

    Header name used when sending the XSRF token.