diff --git a/aio/content/guide/http.md b/aio/content/guide/http.md index ef7002a693..a30fb83194 100644 --- a/aio/content/guide/http.md +++ b/aio/content/guide/http.md @@ -12,7 +12,7 @@ The HTTP client service offers the following major features. ##### Prerequisites -Before working with the `HTTPClientModule`, you should have a basic understanding of the following: +Before working with the `HttpClientModule`, you should have a basic understanding of the following: * TypeScript programming * Usage of the HTTP protocol @@ -62,7 +62,7 @@ Look at the `AppModule` _imports_ to see how it is configured. ## Requesting data from a server -Use the [`HTTPClient.get()`](api/common/http/HttpClient#get) method to fetch data from a server. +Use the [`HttpClient.get()`](api/common/http/HttpClient#get) method to fetch data from a server. The asynchronous method sends an HTTP request, and returns an Observable that emits the requested data when the response is received. The return type varies based on the `observe` and `responseType` values that you pass to the call. @@ -1085,7 +1085,7 @@ Now you can write a test that expects a GET Request to occur and provides a mock + header="app/testing/http-client.spec.ts (HttpClient.get)"> The last step, verifying that no requests remain outstanding, is common enough for you to move it into an `afterEach()` step: diff --git a/aio/content/guide/pipes.md b/aio/content/guide/pipes.md index 8ad1974aae..0913ad6e38 100644 --- a/aio/content/guide/pipes.md +++ b/aio/content/guide/pipes.md @@ -394,7 +394,7 @@ The following code example binds an observable of message strings ## Caching HTTP requests -To [communicate with backend services using HTTP](/guide/http "Communicating with backend services using HTTP"), the `HttpClient` service uses observables and offers the `HTTPClient.get()` method to fetch data from a server. +To [communicate with backend services using HTTP](/guide/http "Communicating with backend services using HTTP"), the `HttpClient` service uses observables and offers the `HttpClient.get()` method to fetch data from a server. The asynchronous method sends an HTTP request, and returns an observable that emits the requested data for the response. As shown in the previous section, you can use the impure `AsyncPipe` to accept an observable as input and subscribe to the input automatically.