{ "id": "api/common/http/HttpHandler", "title": "HttpHandler", "contents": "\n\n
\n
\n
\n \n API > @angular/common > @angular/common/http\n
\n \n
\n \n
\n

HttpHandlerlink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Transforms an HttpRequest into a stream of HttpEvents, one of which will likely be a\nHttpResponse.

\n\n

See more...

\n
\n \n \n \n
\n\nabstract class HttpHandler {\n abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>\n}\n\n\n \n \n
\n

Subclasseslink

\n \n\n\n\n\n
\n \n\n
\n\n\n \n\n \n \n
\n

Descriptionlink

\n

HttpHandler is injectable. When injected, the handler instance dispatches requests to the\nfirst interceptor in the chain, which dispatches to the second, etc, eventually reaching the\nHttpBackend.

\n

In an HttpInterceptor, the HttpHandler parameter is the next interceptor in the chain.

\n\n \n
\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n
\n

Methodslink

\n \n \n\n \n \n \n \n \n \n \n \n\n \n\n \n \n
\n
\n

\n handle()\n \n link

\n \n
\n
\n
\n \n\n abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n
\n \n req\n HttpRequest\n \n \n
\n\n \n
Returns
\n

Observable<HttpEvent<any>>

\n\n \n\n\n \n\n \n
\n
\n\n \n
\n\n\n\n \n\n\n
\n
\n\n\n" }