File

src/app/modules/shared/interfaces/httpOptions.ts

Description

http method options

Properties

body
body: any
Type : any

body for delete

headers
headers: HttpHeaders | { [header: string]: any; }
Type : HttpHeaders | { [header: string]: any; }

http header

observe
observe: any
Type : any

if value is response , headers will be returned in api response

params
params: HttpParams | { [param: string]: string | string[]; }
Type : HttpParams | { [param: string]: string | string[]; }

http params

reportProgress
reportProgress: boolean
Type : boolean

report Progress

responseType
responseType: "json"
Type : "json"

response Type

import { HttpParams, HttpHeaders } from '@angular/common/http';
/**
 * http method options
*/
export interface HttpOptions {
  /**
   * http header
  */
    headers?: HttpHeaders | {[header: string]: string | any};
  /**
   * http params
  */
    params?: HttpParams | {
        [param: string]: string | string[];
    };
  /**
   * report Progress
  */
    reportProgress?: boolean;
  /**
   * response Type
  */
    responseType?: 'json';
  /**
   * body for delete
  */
    body?: any;

    /**
   * if value is response , headers will be returned in api response
  */
    observe?: any;

}

results matching ""

    No results matching ""