docs: fix wrong HttpEventType of HttpResponse class (#32296)

PR Close #32296
This commit is contained in:
Richard Lea 2019-08-24 18:45:05 +09:00 committed by atscott
parent a58a5fd7bb
commit b9fbd9bb03
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ You may have expected the `intercept()` and `handle()` methods to return observa
Instead they return observables of `HttpEvent<any>`.
That's because interceptors work at a lower level than those `HttpClient` methods. A single HTTP request can generate multiple _events_, including upload and download progress events. The `HttpResponse` class itself is actually an event, whose type is `HttpEventType.HttpResponseEvent`.
That's because interceptors work at a lower level than those `HttpClient` methods. A single HTTP request can generate multiple _events_, including upload and download progress events. The `HttpResponse` class itself is actually an event, whose type is `HttpEventType.Response`.
Many interceptors are only concerned with the outgoing request and simply return the event stream from `next.handle()` without modifying it.