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