import {JSONInterceptor} from '@cedx/ngx-core/src/services/json_interceptor.js'
JSONInterceptor
Extends:
Decorates the client requests with the application/json
MIME type.
The Accept
and Content-Type
headers are added to requests made with this HTTP client when they are not already provided.
Static Member Summary
Static Public Members | ||
public static get |
The class decorators. |
|
public static get |
The constructor parameters. |
Method Summary
Public Methods | ||
public |
Performs a request with |
|
public |
Performs a request with |
|
public |
Performs a request with |
|
public |
Performs a request with |
|
public |
Performs a request with |
|
public |
Performs a request with |
|
public |
Performs a request with |
|
public |
Performs any type of HTTP request. |
Static Public Members
Public Methods
public delete(url: string, options: object): Observable<Response> source
Performs a request with DELETE
HTTP method.
Return:
Observable<Response> | The server response. |
public get(url: string, options: object): Observable<Response> source
Performs a request with GET
HTTP method.
Return:
Observable<Response> | The server response. |
public head(url: string, options: object): Observable<Response> source
Performs a request with HEAD
HTTP method.
Return:
Observable<Response> | The server response. |
public options(url: string, options: object): Observable<Response> source
Performs a request with OPTIONS
HTTP method.
Return:
Observable<Response> | The server response. |
public patch(url: string, body: *, options: object): Observable<Response> source
Performs a request with PATCH
HTTP method.
Return:
Observable<Response> | The server response. |
public post(url: string, body: *, options: object): Observable<Response> source
Performs a request with POST
HTTP method.
Return:
Observable<Response> | The server response. |
public put(url: string, body: *, options: object): Observable<Response> source
Performs a request with PUT
HTTP method.
Return:
Observable<Response> | The server response. |