9 Commits

Author SHA1 Message Date
Mattia
f994b054f9 Support adapter customization (#651)
* add initializer on Faraday::Adapter that accept and store a block with custom configuration
use the `@ config_block ` block on `net_http` and `net_http_persistent` adapters
added tests

* fixes warning in tests
patron was supporting custom block already! Small refactoring to conform to other adapters

* added implementation for httpclient
excon and EM adapters now all support `connection_options` in the initializer

* additional test for httpclient adapter
2017-01-13 12:07:01 +00:00
Mislav Marohnić
4ac193943b wrap OpenSSL exceptions in Faraday's own SSLError class 2013-07-27 14:38:20 +02:00
Mislav Marohnić
7a38f177dc fix net-http-persistent timeout detection on Ruby 2.0
Re-enable timeout test because drbrain/net-http-persistent#33 got fixed
in net-http-persistent 2.8
2013-04-02 21:41:58 +02:00
Mislav Marohnić
3ac2e3f7bc disable timeout test for net-http-persistent due to bug 2012-08-12 15:59:46 +02:00
Mislav Marohnić
e8118055d5 refactor NetHttp and NetHttpPersistent adapters
closes #133
2012-04-15 15:42:31 +02:00
Mislav Marohnić
a019a11946 cleanup Net::HTTP-specific tests 2012-04-15 14:33:21 +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ć
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