mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-11-08 00:09:51 -05:00
preparing the release notes for next version
This commit is contained in:
parent
d46a9aaab2
commit
46729a8f79
39
doc/release_notes/0_4_0.md
Normal file
39
doc/release_notes/0_4_0.md
Normal file
@ -0,0 +1,39 @@
|
||||
# 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
|
||||
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 ...
|
||||
|
||||
|
||||
|
||||
* 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)
|
||||
Loading…
x
Reference in New Issue
Block a user