docs: HTTP in HttpClient should not be written in uppercase (#40195)

PR Close #40195
This commit is contained in:
Amadou Sall 2020-12-18 21:39:35 +01:00 committed by Joey Perrott
parent 9057a0cc0b
commit 8d25bd1e9f
2 changed files with 4 additions and 4 deletions

View File

@ -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
<code-example
path="http/src/testing/http-client.spec.ts"
region="get-test"
header="app/testing/http-client.spec.ts(httpClient.get)">
header="app/testing/http-client.spec.ts (HttpClient.get)">
</code-example>
The last step, verifying that no requests remain outstanding, is common enough for you to move it into an `afterEach()` step:

View File

@ -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.