21 Commits

Author SHA1 Message Date
Alexander Pepper
c877521697 httpclient: Enable gzip compression.
Motivation: httpclient support gzip compression since late 2010 (see https://github.com/nahi/httpclient/issues/42 ).
2015-01-14 15:27:00 +01:00
Mislav Marohnić
4ac193943b wrap OpenSSL exceptions in Faraday's own SSLError class 2013-07-27 14:38:20 +02:00
Mislav Marohnić
7380ffc137 bump multipart-post dependency for Ruby 2.0 compatibility 2013-07-27 00:29:46 +02:00
Mislav Marohnić
0a1deaf173 add integration tests for HTTP proxy support
Spins up a proxy server in a separate process, runs a few requests
through it with each adapter to verify that both proxy support and basic
authentication take effect.
2013-07-27 00:29:44 +02:00
Mislav Marohnić
f28bf056cf ensure consistent handling of connection failures
All adapters should now raise Faraday::Error::ConnectionFailed
2013-07-27 00:29:41 +02:00
Mislav Marohnić
a23124ea7b avoid ruby syntax warnings 2013-06-25 04:11:31 +02:00
Erik Michaels-Ober
faab1b08cd Replace test-unit with minitest 2012-12-16 20:22:03 -08:00
technoweenie
223b160954 shove ruby autoloading to 'faraday/autoload' 2012-10-20 17:38:48 -06:00
Mislav Marohnić
79022619ac add jruby?, ssl_mode? test helpers 2012-08-16 18:21:04 +02:00
Mislav Marohnić
9b3923f62c move WEBrick SSL config to script/test 2012-08-16 18:21:00 +02:00
Jerry Cheung
cc918842fb enable test suite in SSL mode 2012-08-16 18:20:23 +02:00
Mislav Marohnić
049ff25ddc all adapters return string for empty responses now 2012-08-12 15:59:45 +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
Mislav Marohnić
e6787c144b script/test spins up test server, runs test suite 2012-06-19 11:15:11 +02:00
Mislav Marohnić
a019a11946 cleanup Net::HTTP-specific tests 2012-04-15 14:33:21 +02:00
Mislav Marohnić
1dcfad746d ruby 1.8 compat 2012-04-15 12:25:27 +02:00
Mislav Marohnić
5d7a50cf0a refactor integration tests to be cleaner and use fewer endpoints 2012-04-14 23:02:11 +02:00
Mislav Marohnić
96490b351d test that adapters can set the User-Agent string 2012-04-14 23:02:11 +02:00
Mislav Marohnić
9c49b0b4c4 properly skip adapter tests if LIVE env variable isn't configured 2012-04-14 23:02:10 +02:00
Jerry Cheung
265c02e771 refactor adapter tests to use modules for shared tests 2012-04-14 23:00:45 +02:00
Jerry Cheung
e0bdfd2803 add Faraday::Adapter::Rack 2012-04-14 23:00:45 +02:00