mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-11-27 00:03:01 -05:00
use default HTTP/2 handshake strategy for grpc
This commit is contained in:
parent
0d58408c58
commit
2f9247abfb
@ -41,4 +41,9 @@
|
||||
### dependencies
|
||||
|
||||
* `:datadog` adapter only supports `ddtrace` gem 1.x or higher.
|
||||
* `:faraday` adapter only supports `faraday` gem 1.x or higher.
|
||||
* `:faraday` adapter only supports `faraday` gem 1.x or higher.
|
||||
|
||||
### chore
|
||||
|
||||
* `:grpc` plugin: connection won't buffer requests before HTTP/2 handshake is commpleted, i.e. works the same as plain `httpx` HTTP/2 connection establishment.
|
||||
* if you are relying on this, you can keep the old behavior this way: `HTTPX.plugin(:grpc, http2_settings: { wait_for_handshake: false })`.
|
||||
|
||||
@ -62,7 +62,6 @@ module HTTPX
|
||||
def extra_options(options)
|
||||
options.merge(
|
||||
fallback_protocol: "h2",
|
||||
http2_settings: { wait_for_handshake: false },
|
||||
grpc_rpcs: {}.freeze,
|
||||
grpc_compression: false,
|
||||
grpc_deadline: DEADLINE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user