ngify
    Preparing search index...

    Class HttpRequest<T>

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • method: HttpMethod
      • url: string
      • Optionaloptions: {
            body?: T;
            context?: HttpContext;
            headers?:
                | string
                | HttpHeaders
                | { [name: string]: string
                | number
                | (string | number)[] }
                | Headers;
            params?:
                | null
                | string
                | HttpParams
                | {
                    [param: string]: | string
                    | number
                    | boolean
                    | readonly (string | number | boolean)[];
                };
            reportProgress?: boolean;
            responseType?: HttpResponseType;
            withCredentials?: boolean;
        }

      Returns HttpRequest<T>

    Properties

    body: null | T
    context: HttpContext
    headers: HttpHeaders
    method: HttpMethod
    params: HttpParams
    reportProgress: boolean
    responseType: HttpResponseType
    url: string
    urlWithParams: string
    withCredentials: boolean

    Methods

    • Examine the body and attempt to infer an appropriate MIME type for it. If no such type can be inferred, this method will return null.

      Returns null | string

    • Transform the free-form body into a serialized format suitable for transmission to the server.

      Returns null | string | ArrayBuffer | Blob | FormData | URLSearchParams