September 2017
Intermediate to advanced
450 pages
11h 24m
English
Angular HTTP library has separate methods for each of the main HTTP verbs used for communicating with an API. All of these methods return an Observable Response object, and all of them can accept RequestOptionsArgs. Request is a special method that allows you to provide a Request object instead of a URL string, so it can be any HTTP verb:
| Angular HTTP Method | HTTP Verb |
| this.http.get(url: string, [RequestOptionsArgs]) | GET |
| this.http.post(url: string, [RequestOptionsArgs]) | POST |
| this.http.put(url: string, [RequestOptionsArgs]) | PUT |
| this.http.delete(url: string, [RequestOptionsArgs]) | DELETE |
| this.http.patch(url: string, [RequestOptionsArgs]) | PATCH |
| this.http.head(url: string, [RequestOptionsArgs]) | HEAD |
| this.http.options(url: ... |
Read now
Unlock full access