@angular/common/http
Implements an HTTP client API for Angular apps that relies on the XMLHttpRequest
interface exposed by browsers.
Includes testability features, typed request and response objects, request and response interception, observable APIs, and streamlined error handling.
For usage information, see the HTTP Client guide.
Entry point exports
NgModules
HttpClientJsonpModule |
Configures the dependency injector for |
HttpClientModule |
Configures the dependency injector for |
HttpClientXsrfModule |
Configures XSRF protection support for outgoing requests. |
Classes
HttpBackend |
A final |
HttpClient |
Perform HTTP requests. |
HttpErrorResponse |
A response that represents an error or failure, either from a non-successful HTTP status, an error while executing the request, or some other failure which occurred during the parsing of the response. |
HttpHandler |
Transforms an |
HttpHeaderResponse |
A partial HTTP response which only includes the status and header data, but no response body. |
HttpHeaders |
Immutable set of Http headers, with lazy parsing. |
HttpParams |
An HTTP request/response body that represents serialized parameters,
per the MIME type |
HttpRequest |
An outgoing HTTP request with an optional typed body. |
HttpResponse |
A full HTTP response, including a typed response body (which may be |
HttpResponseBase |
Base class for both |
HttpUrlEncodingCodec |
A |
HttpXhrBackend |
An |
HttpXsrfTokenExtractor |
Retrieves the current XSRF token to use with the next outgoing request. |
JsonpClientBackend |
|
JsonpInterceptor |
An |
XhrFactory |
A wrapper around the |
Structures
HttpDownloadProgressEvent |
A download progress event. |
HttpEventType |
Type enumeration for the different kinds of |
HttpInterceptor |
Intercepts |
HttpParameterCodec |
A codec for encoding and decoding parameters in URLs. |
HttpProgressEvent |
Base interface for progress events. |
HttpSentEvent |
An event indicating that the request was sent to the server. Useful when a request may be retried multiple times, to distinguish between retries on the final event stream. |
HttpUserEvent |
A user-defined event. |
Types
HTTP_INTERCEPTORS |
A multi-provider token which represents the array of |
HttpEvent |
Union type for all possible events on the response stream. |