swagger-angular-generator icon indicating copy to clipboard operation
swagger-angular-generator copied to clipboard

HTTP method options

Open fazpu opened this issue 7 years ago • 0 comments

Implement a way to specify which options should given http method have:

post(url: string, body: any | null, options: {
    headers?: HttpHeaders | {
        [header: string]: string | string[];
    };
    observe?: HttpObserve;
    params?: HttpParams | {
        [param: string]: string | string[];
    };
    reportProgress?: boolean;
    responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
    withCredentials?: boolean;
} = {}): Observable<any>

fazpu avatar Jan 25 '18 12:01 fazpu