File

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

Description

http method options

Index

Properties

Properties

body
body: any
Type : any
Optional

body for delete

headers
headers: HttpHeaders | literal type
Type : HttpHeaders | literal type
Optional

http header

observe
observe: any
Type : any
Optional

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

params
params: HttpParams | literal type
Type : HttpParams | literal type
Optional

http params

reportProgress
reportProgress: boolean
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;

}

results matching ""

    No results matching ""