"HTTPX is an HTTP client library for the Ruby programming language. Among its features, it supports: HTTP/2 and HTTP/1.x protocol versions Concurrent requests by default Simple and chainable API Proxy Support (HTTP(S), CONNECT tunnel, Socks4/4a/5) Simple Timeout System Lightweight by default (require what you need)"
"And also: Compression (gzip, deflate, brotli) Streaming Requests Authentication (Basic Auth, Digest Auth, AWS Sigv4) Expect 100-continue Multipart Requests Cookies HTTP/2 Server Push H2C Upgrade Automatic follow redirects International Domain Names GRPC Circuit breaker WebDAV SSRF Filter Response caching HTTP/2 bidirectional streaming QUERY HTTP verb Datadog integration Faraday integration Webmock integration Sentry integration"
"1.7.0 Features All AUTH plugin improvements!! :auth The :auth plugin can now be used with a dynamic callable object (methods, procs...) to generate the token. # static token, pre 1.7.0 HTTPX.plugin(:auth).authorization("API-TOKEN") # dynamically generate token! HTTPX.plugin(:auth).authorization { generate_new_ephemeral_token } The .authorization method is now syntactic sugar for a new option, :auth_header_value, which can be used directly, alongside a :auth_header_type: HTTPX.plugin(:auth).authorization("API-TOKEN") HTTPX.plugin(:auth).authorization { generate_new_ephemeral_token } HTTPX.plugin(:auth).authorization("Bearer API-TOKEN") # same as HTTPX.plugin(:auth, auth_header_value: "API-TOKEN") HTTPX.plugin(:auth, auth_header_value: -> { generate_new_ephemeral_token }) HTTPX.plugin(:auth, auth_header_type: "Bearer", auth_header_value: "API-TOKEN") A new option :generate_auth_value_on_retry (which can be passed a callable receiving a response object) is now available; when used alongside the :ret"
HTTPX 1.7.0 is a Ruby HTTP client providing HTTP/2 and HTTP/1.x support with concurrent requests by default and a simple chainable API. The client offers proxy support, a straightforward timeout system, and a lightweight core that requires only needed components. Feature additions and integrations include compression, streaming requests, multiple authentication schemes, multipart requests, cookies, HTTP/2 server push, H2C upgrade, redirects handling, international domain names, gRPC, circuit breaker, WebDAV, SSRF filtering, response caching, bidirectional HTTP/2 streaming, and integrations with Datadog, Faraday, Webmock, and Sentry. The :auth plugin now supports dynamic callables, auth_header_value/type options, and token generation on retries.
Read at Rubyflow
Unable to calculate read time
Collection
[
|
...
]