AngularTS
    Preparing search index...

    Interface HttpProviderDefaults

    Default request settings exposed through $httpProvider.defaults.

    Not every RequestShortcutConfig 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 https://docs.angularjs.org/api/ng/provider/$httpProvider The properties section

    interface HttpProviderDefaults {
        cache?: boolean | HttpCacheLike;
        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?: boolean | HttpCacheLike

    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.