0_14_0.md

submited by
Style Pass
2021-05-24 17:30:05

A new plugin, :grpc, is now available. This plugin provides a simple DSL to build GRPC services and performing calls using httpx under the hood.

Note! The origin is not for setting base paths, i.e. if you pass it a relative path, it'll be filtered out in subsequent requests (HTTPX.with(origin: "https://nghttp2.org/httpbin") will still use only "https://nghttp2.org").

HTTPX::Options#def_option (which can be used for setting custom plugin options) can now be passed a full body string (where the argument is value), although it still support the block form. This is the recommended approach, as the block form is based on define_method, which would make clients unusable inside ractors.

Added support for :wait_for_handshake under the http2_settings option (false by default). HTTP/2 connections complete the protocol handshake before requests are sent. When this option is true, requests get send in the initial payload, before the HTTP/2 connection is fully acknowledged.

441716a5ac0f7707211ebe0048f568cf0b759c3f: The :stream plugin has been improved to start streaming the real response as methods are called (instead of a completely separate synchronous one, which is definitely not good):

Leave a Comment