HttpHandler
Transforms an HttpRequest
into a stream of HttpEvent
s, one of which will likely be a
HttpResponse
.
abstract class HttpHandler {
abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>
}
Subclasses
Description
HttpHandler
is injectable. When injected, the handler instance dispatches requests to the
first interceptor in the chain, which dispatches to the second, etc, eventually reaching the
HttpBackend
.
In an HttpInterceptor
, the HttpHandler
parameter is the next interceptor in the chain.
Methods
Parameters
Returns
|