You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Please replace `{Version}` with the version number you want to install (e.g. `1.2.0`).
92
+
> Please replace `{Version}` with the version number you want to install (e.g. `1.8.0`). See [Releases](https://github.com/Cysharp/YetAnotherHttpHandler/releases) page.
> Please replace `{Version}` with the version number you want to install (e.g. `1.2.0`).
115
+
> Please replace `{Version}` with the version number you want to install (e.g. `1.8.0`). See [Releases](https://github.com/Cysharp/YetAnotherHttpHandler/releases) page.
116
116
117
117
#### Method 3: Install from GitHub / Git repository
> Please replace `{Version}` with the version number you want to install (e.g. `1.2.0`).
129
+
> Please replace `{Version}` with the version number you want to install (e.g. `1.8.0`). See [Releases](https://github.com/Cysharp/YetAnotherHttpHandler/releases) page.
130
130
131
131
## Usage
132
132
@@ -176,14 +176,15 @@ To use grpc-dotnet (Grpc.Net.Client), add the following additional library to `m
176
176
> [!NOTE]
177
177
> Replace `{version}` with the latest version available in NuGet: https://www.nuget.org/packages/Grpc.Net.Client#versions-body-tab
178
178
179
-
#### Method 2: Install pre-built package or install the libraries manually.
179
+
#### Method 3: Install pre-built package or install the libraries manually.
180
180
181
181
Please download and install [Grpc.Net.Client.Dependencies.unitypackage
182
182
from the dependency redistribution on the release page](https://github.com/Cysharp/YetAnotherHttpHandler/releases/tag/redist-20230728-01), or obtain the library from NuGet.
183
183
184
-
Create an instance of `YetAnotherHttpHandler` and pass it to `GrpcChannelOptions.HttpHandler` property.
185
184
186
185
#### Using GrpcChannel with YetAnotherHttpHandler
186
+
Create an instance of `YetAnotherHttpHandler` and pass it to `GrpcChannelOptions.HttpHandler` property.
187
+
187
188
```csharp
188
189
usingCysharp.Net.Http;
189
190
@@ -214,12 +215,14 @@ Once the handler sends a request, these settings become immutable and cannot be
214
215
|SkipCertificateVerification|Gets or sets a value that indicates whether to skip certificate verification.|
215
216
|OnVerifyServerCertificate|Gets or sets a custom handler that validates server certificates.|
216
217
|RootCertificates|Gets or sets a custom root CA. By default, the built-in root CA (Mozilla's root certificates) is used. See also https://github.com/rustls/webpki-roots.|
218
+
|OverrideServerName|Gets or sets a value that specifies subject alternative name (SAN) of the certificate.|
217
219
|ClientAuthCertificates|Gets or sets a custom client auth key.|
218
220
|ClientAuthKey|Gets or sets a custom client auth certificates.|
219
221
|Http2InitialStreamWindowSize|Gets or sets the SETTINGS_INITIAL_WINDOW_SIZE option for HTTP2 stream-level flow control.|
220
222
|Http2InitialConnectionWindowSize|Gets or sets the max connection-level flow control for HTTP2|
221
223
|Http2AdaptiveWindow|Gets or sets whether to use an adaptive flow control. Enabling this will override the limits set in http2_initial_stream_window_size and http2_initial_connection_window_size.|
222
224
|Http2MaxFrameSize|Gets or sets the maximum frame size to use for HTTP2.|
225
+
|ConnectTimeout|Gets or sets timeout for TCP connection establishment. Pass null to never timeout. Default is never timeout.|
223
226
|Http2KeepAliveInterval|Gets or sets an interval for HTTP2 Ping frames should be sent to keep a connection alive. Pass <value>null</value> to disable HTTP2 keep-alive. Default is currently disabled.|
224
227
|Http2KeepAliveTimeout|Gets or sets a timeout for receiving an acknowledgement of the keep-alive ping. If the ping is not acknowledged within the timeout, the connection will be closed. Does nothing if http2_keep_alive_interval is disabled. Default is 20 seconds.|
225
228
|Http2KeepAliveWhileIdle|Gets or sets whether HTTP2 keep-alive should apply while the connection is idle. If disabled, keep-alive pings are only sent while there are open request/responses streams. If enabled, pings are also sent when no streams are active. Does nothing if http2_keep_alive_interval is disabled. Default is false.|
0 commit comments