Mislav Marohnić
a922b6534e
fix Excon SSL ca_path, ca_file settings
...
Fixes #175
2012-08-12 17:24:08 +02:00
Myron Marston
f41ffaabb7
Ensure empty body responses are consistently returned as empty strings.
...
Zero-byte response bodies can be represented as either nil or '' in ruby.
Most ruby HTTP clients use '' (which, conveniently, allows clients
to assume the body is always a string), but Net::HTTP, for whatever
reason, uses nil.
This change makes it so that all faraday adapters consistently return
'' for zero-byte response bodies.
2012-08-12 13:49:20 +02:00
Dorren Chen
a2ac8e1acf
fix adopting nested query params from URLs
2012-08-12 13:42:06 +02:00
Tatsuhiko Miyagawa
95e81711bc
Fix the rdoc to pass in an actual Rack app, not class.
2012-08-12 13:33:46 +02:00
Mislav Marohnić
42ac0e50a0
improve Connection#initialize docs
2012-07-26 11:50:11 +02:00
Mislav Marohnić
d1f177b30b
respect user+password credentials from HTTP proxy URI
...
Closes #178
2012-07-26 11:48:37 +02:00
Erik Michaels-Ober
2274fe2105
Add Zlib::GzipFile::Error to the list of errors that may be raised by net/http
...
Closes jnunemaker/twitter#276
2012-06-29 09:35:25 -06:00
Mislav Marohnić
d8aba7a99a
raise proper exception for Excon timeout
2012-06-19 11:15:11 +02:00
Mislav Marohnić
a69357d8cf
Excon: fix file uploads
2012-06-19 11:15:11 +02:00
Dan Dofter
6d63ec52a6
add ability to pass excon-specific options when initializing the adapter
2012-05-29 08:55:04 -07:00
Dan Dofter
f9eead9552
add ability to set default connection options for all connections
2012-05-29 08:55:04 -07:00
Dan Dofter
e27df4e915
set excon timeouts from faraday configuration and handle timeout errors
2012-05-29 08:55:03 -07:00
Dan Dofter
24ced570ed
don't override excon's global connection settings
...
Update excon's settings on the connection instance, not globally for
all connections (even ones made outside of faraday). Address
deprecation warnings.
2012-05-29 08:55:03 -07:00
Mislav Marohnić
c65d058969
fix Retry middleware on 1.8
2012-05-29 01:39:22 +02:00
Mislav Marohnić
e8c98c4323
improve Retry middleware, change to only handle timeouts
...
Also supercharge it with :max, :interval, and :exceptions options.
Closes #158
2012-05-29 01:22:19 +02:00
Mislav Marohnić
98ba9137f6
optimize and test Utils.escape()
...
Fixes #159
2012-05-29 00:08:37 +02:00
Ezekiel Templin
4e14ce5831
standards-compliant URI escaping
2012-05-29 00:03:55 +02:00
Vasily Mikhaylichenko
95a0cd03d0
fix typo in documentation
2012-05-14 12:26:10 +02:00
Hakan Ensari
8fe63e1651
Use :bind instead of :socket_local to set local socket
2012-05-07 18:28:50 +02:00
Hakan Ensari
b0c6cbd24d
Merge branch 'master' into httpclient
2012-05-07 17:54:39 +02:00
rick
b87aa9eacd
forgot proxy documentation on Faraday.new
2012-05-06 10:13:29 -06:00
rick
f75de51d9a
finish documenting faraday and faraday/connection
2012-05-06 09:44:28 -06:00
rick
a694190c4d
tomdoc pass 1
2012-05-05 18:35:29 -06:00
Ezekiel Templin
d4d88a1de8
Add bind option to Typhoeus [ #154 ]
2012-05-03 14:55:40 -04:00
Hakan Ensari
5b91734495
Expose local socket config in EM::HTTP and ilk
2012-05-02 17:31:05 +01:00
Hakan Ensari
371ad26466
Fix options in EM::Synchrony adapter
2012-05-02 17:19:00 +01:00
Hakan Ensari
e42b439f14
Add local socket support for HTTPClient adapter
...
So you can utilise all IPs on a server…
2012-05-02 02:56:50 +01:00
Hakan Ensari
c2d88ffd3e
Add HTTPClient adapter
...
nahi/httpclient#90
2012-05-02 02:24:50 +01:00
Hakan Ensari
d0f07ea7b3
Fix ssl config in Excon adapter
2012-05-02 02:20:41 +01:00
Robert Jackson
add19ff55f
Only require system_timer in MRI 1.8.
2012-04-26 10:54:36 -04:00
Robert Jackson
89453d754e
Do not rely on RUBY_ENGINE being undefined in MRI.
2012-04-26 10:03:17 -04:00
Robert Jackson
5685065d9a
Use RUBY_ENGINE to determine if system_timer is needed.
2012-04-26 08:57:52 -04:00
Robert Jackson
e8ca21f21f
Do not suggest system_timer for JRuby.
2012-04-26 08:16:20 -04:00
rick
416016f31e
Release 0.8.0
2012-04-22 22:04:36 -06:00
rick
e09cf33644
some style tweaks
2012-04-21 19:59:08 -06:00
rick
18dae1447d
authorization header helpers don't modify the stack
2012-04-21 19:46:05 -06:00
rick
52a951aed2
Add an Authorization middleware to generate token headers
2012-04-21 19:38:05 -06:00
rick
8f78b836c6
add Faraday::Timer
2012-04-21 11:35:18 -06:00
rick
fb0b88350a
fix timeout test
2012-04-21 11:29:12 -06:00
David Lee
f54bb91274
Fix ssl_verify_mode
...
ssl_verify_mode was referencing http, which resulted in:
NameError: undefined local variable or method `http' for #<Faraday::Adapter::NetHttp:0x007fe8c2cc24e8>
2012-04-18 00:03:15 -07:00
Mislav Marohnić
2d290f63da
try to fix timeout behavior in Adapter::Rack
2012-04-15 16:18:16 +02:00
Mislav Marohnić
e8118055d5
refactor NetHttp and NetHttpPersistent adapters
...
closes #133
2012-04-15 15:42:31 +02:00
Mislav Marohnić
2ced228f71
fix request headers in Adapter::Rack
2012-04-15 12:59:56 +02:00
Mislav Marohnić
96ba8eb2d7
code style for Adapter::Rack
2012-04-15 12:26:49 +02:00
Mislav Marohnić
1dcfad746d
ruby 1.8 compat
2012-04-15 12:25:27 +02:00
Jerry Cheung
7ecb7fa211
remove ActionDispatch adapter: superseded by "Rack" adapter
2012-04-14 23:01:15 +02:00
Jerry Cheung
e0bdfd2803
add Faraday::Adapter::Rack
2012-04-14 23:00:45 +02:00
rick
d68d862310
Merge pull request #129 from nbibler/net_http_exception_wrapping
...
Wrap known exceptions which bubble up through Net::HTTP
2012-04-14 08:24:00 -07:00
rick
9f1181c846
Merge pull request #118 from hrp/master
...
Add ability to set options for a Patron::Session and reuse Patron::Session for each
2012-04-14 08:23:14 -07:00
Hiten Parmar
7f61f22cab
Remove readme message and a debug print statement.
2012-04-12 22:27:29 -07:00