Skip to content

Commit

Permalink
docs: fix wrong HttpEventType of HttpResponse class (angular#32296)
Browse files Browse the repository at this point in the history
PR Close angular#32296
  • Loading branch information
chigix authored and arnehoek committed Sep 26, 2019
1 parent cf9bd29 commit eccb0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aio/content/guide/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit eccb0ce

Please sign in to comment.