AngularTS
    Preparing search index...

    Interface RequestShortcutConfig

    Request options shared by the $http shortcut methods. See http://docs.angularjs.org/api/ng/service/$http#usage

    interface RequestShortcutConfig {
        cache?: boolean | HttpCacheLike;
        data?: unknown;
        headers?: HttpRequestConfigHeaders;
        params?: HttpParams;
        paramSerializer?: string | ((obj: HttpParams) => string);
        responseType?: string;
        timeout?: number | Promise<unknown>;
        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.

    data?: unknown

    Request body. Shorthand methods with explicit data set this automatically.

    Default headers merged into each request.

    params?: HttpParams

    Query parameters appended to the request URL.

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

    Query parameter serializer token or function.

    responseType?: string

    Native fetch response body reader hint.

    timeout?: number | Promise<unknown>

    Millisecond timeout, or a promise whose resolution aborts the request.

    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.