From 8d25bd1e9fbb91f2a7350545aa6e1bccd6c60b16 Mon Sep 17 00:00:00 2001 From: Amadou Sall Date: Fri, 18 Dec 2020 21:39:35 +0100 Subject: [PATCH] docs: HTTP in HttpClient should not be written in uppercase (#40195) PR Close #40195 --- aio/content/guide/http.md | 6 +++--- aio/content/guide/pipes.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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.