src/app/modules/shared/interfaces/httpOptions.ts
http method options
body |
body: |
Type : any
|
body for delete |
headers |
headers: |
Type : HttpHeaders | { [header: string]: any; }
|
http header |
observe |
observe: |
Type : any
|
if value is response , headers will be returned in api response |
params |
params: |
Type : HttpParams | { [param: string]: string | string[]; }
|
http params |
reportProgress |
reportProgress: |
Type : boolean
|
report Progress |
responseType |
responseType: |
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;
}