projects/wvr-elements/src/lib/core/rest/request-options.ts
Properties |
|
| headers |
headers:
|
Type : literal type
|
| Optional |
| observe |
observe:
|
Type : "body" | "response" | "events"
|
| Optional |
| params |
params:
|
Type : HttpParams | literal type
|
| Optional |
| pathVariables |
pathVariables:
|
Type : literal type
|
| Optional |
| reportProgress |
reportProgress:
|
Type : boolean
|
| Optional |
| responseType |
responseType:
|
Type : "arraybuffer" | "blob" | "text" | "json"
|
| Optional |
| withCredentials |
withCredentials:
|
Type : boolean
|
| Optional |
import { HttpParams } from '@angular/common/http';
export interface RequestOptions {
headers?: { [header: string]: string | Array<string>; };
observe?: 'body' | 'response' | 'events';
params?: HttpParams | { [param: string]: string | Array<string>; };
pathVariables?: { [pathKey: string]: string; };
reportProgress?: boolean;
responseType?: 'arraybuffer' | 'blob' | 'text' | 'json';
withCredentials?: boolean;
}