Sha256: 57de632748b0d4fac39cefa60ae6bca46906b3ec885aebfae4b23197c678fff2

Contents?: true

Size: 1.52 KB

Versions: 91

Compression:

Stored size: 1.52 KB

Contents

# 0.4.0

* Feature: SSH proxy plugin -> send requests over ssh gateway;

```ruby
HTTPX.plugin(:"proxy/ssh").
	  with_proxy(uri: "ssh://localhost:2222",
                 username: "root",
                 auth_methods: %w[publickey],
                 host_key: "ssh-rsa",
                 keys: %w[test/support/ssh/ssh_host_ed25519_key]).get(URI)
```

* Feature: Faraday Adapter

* refactoring: cookies plugin API simplification (this is a breaking change!):

```ruby
session = HTTPX.plugin(:cookies)
session.with_cookies("a" => "b").get(...
session.cookies #=> session current cookie store, persists/updates session cookies as requests are processed
session.wrap do |session|
  session.get(..) #=> "Set-Cookie"
  ...
end #=> after this, cookie store resets to the state previous to wrap
```

Removed `Session#cookie_store`

```ruby
client = HTTPX.plugin(:cookies)
redirect_response = client.get(URI) #=> ... 302 ... Set-Cookie: "blablalba" ...
# this sets the cookies
# GET .... Cookie: "blablabla" ....
response = client.get(URI) #=> ... 200 ...
# also, setting cookies:

client.cookies("a" => "b").get(URI) # ... Cookie: "a=b" ...

#also seamlessly integrates with redirect follows
client = HTTPX.plugins(:follow_redirects, :cookies)
response = client.get(URI) #=> ... 200 ...
```

* refactoring: connection pool now thread-local, improves thread-safety;

* bugfix: leaking dns query when passing IO object as option;

* bugfix: now multiple different resolvers are supported;

* support: JRuby is again supported (as usual, only latest stable is guaranteed)

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
httpx-1.0.0 doc/release_notes/0_4_0.md
httpx-0.24.6 doc/release_notes/0_4_0.md
httpx-0.24.5 doc/release_notes/0_4_0.md
httpx-0.24.4 doc/release_notes/0_4_0.md
httpx-0.24.3 doc/release_notes/0_4_0.md
httpx-0.24.2 doc/release_notes/0_4_0.md
httpx-0.24.1 doc/release_notes/0_4_0.md
httpx-0.24.0 doc/release_notes/0_4_0.md
httpx-0.23.4 doc/release_notes/0_4_0.md
httpx-0.23.3 doc/release_notes/0_4_0.md
httpx-0.23.2 doc/release_notes/0_4_0.md
httpx-0.23.1 doc/release_notes/0_4_0.md
httpx-0.23.0 doc/release_notes/0_4_0.md
httpx-0.22.5 doc/release_notes/0_4_0.md
httpx-0.22.4 doc/release_notes/0_4_0.md
httpx-0.22.3 doc/release_notes/0_4_0.md
httpx-0.22.2 doc/release_notes/0_4_0.md
httpx-0.22.1 doc/release_notes/0_4_0.md
httpx-0.22.0 doc/release_notes/0_4_0.md
httpx-0.21.1 doc/release_notes/0_4_0.md