Skip to content

Commit 9c5c617

Browse files
voroninpguardrex
authored andcommitted
Fix typo 'dispostHandler' -> disposeHandler (dotnet#16430)
1 parent 0604eab commit 9c5c617

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aspnetcore/fundamentals/http-requests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ There are alternative ways to solve the preceding problems using a long-lived <x
294294

295295
- Create an instance of `SocketsHttpHandler` when the app starts and use it for the life of the app.
296296
- Configure <xref:System.Net.Http.SocketsHttpHandler.PooledConnectionLifetime> to an appropriate value based on DNS refresh times.
297-
- Create `HttpClient` instances using `new HttpClient(handler, dispostHandler: false)` as needed.
297+
- Create `HttpClient` instances using `new HttpClient(handler, disposeHandler: false)` as needed.
298298

299299
The preceding approaches solve the resource management problems that `IHttpClientFactory` solves in a similar way.
300300

@@ -596,7 +596,7 @@ There are alternative ways to solve the preceding problems using a long-lived <x
596596

597597
- Create an instance of `SocketsHttpHandler` when the app starts and use it for the life of the app.
598598
- Configure <xref:System.Net.Http.SocketsHttpHandler.PooledConnectionLifetime> to an appropriate value based on DNS refresh times.
599-
- Create `HttpClient` instances using `new HttpClient(handler, dispostHandler: false)` as needed.
599+
- Create `HttpClient` instances using `new HttpClient(handler, disposeHandler: false)` as needed.
600600

601601
The preceding approaches solve the resource management problems that `IHttpClientFactory` solves in a similar way.
602602

@@ -904,7 +904,7 @@ There are alternative ways to solve the preceding problems using a long-lived <x
904904

905905
- Create an instance of `SocketsHttpHandler` when the app starts and use it for the life of the app.
906906
- Configure <xref:System.Net.Http.SocketsHttpHandler.PooledConnectionLifetime> to an appropriate value based on DNS refresh times.
907-
- Create `HttpClient` instances using `new HttpClient(handler, dispostHandler: false)` as needed.
907+
- Create `HttpClient` instances using `new HttpClient(handler, disposeHandler: false)` as needed.
908908

909909
The preceding approaches solve the resource management problems that `IHttpClientFactory` solves in a similar way.
910910

0 commit comments

Comments
 (0)