Commit Graph

19 Commits

Author SHA1 Message Date
James Hu df3184e116
Merge pull request #27 from kylewlacy/passthrough-compression
Add option to pass through compression
2022-02-07 17:49:19 -08:00
Andreas Finger d8c362ce56 Remove unused 'rack-proxy' dependency
Convert 'rack' to implicit dependency (of actionpack) instead of listing 
it explicitly
2021-03-24 19:09:23 +01:00
Kyle Lacy 46eaa864b3 Replace `:compression` option with `:reset_accept_encoding`
The default is to now to not clear the `Accept-Encoding` header (this can be changed back to the older behavior by passing `reset_accept_encoding: true`)
2018-04-18 21:24:31 -07:00
Ian Clarkson dc19756c1f Don't copy HTTP_VERSION from the source to the target request
Although the HTTP Version appears as a header inside `env`, it's not actually a regular header. When `extract_http_request_headers` is called, it translates the `HTTP_VERSION` "header" into a `Version` header. `Version` is only a provisionally-supported header name, and is semantically meant to represent the version of an (evolving object)[https://www.w3.org/Protocols/HTTP/Object_Headers.html#z13]. It's not correct to pass the HTTP Version as the contents of the `Version` header, so this change skips the processing of that particular header entirely.
2018-04-18 15:25:14 -07:00
Kyle Lacy 5662cc2bde Add option to pass through compressed responses 2018-01-29 16:11:29 -08:00
Kyle Lacy c9336a23d3 Tweak Rack request header initialization 2018-01-29 15:37:22 -08:00
empunkt d7b479a80a Fix verify_ssl option 2017-07-12 07:09:10 +02:00
joshua stein adfcc427a9 add on_connect callback, passing http object 2017-06-23 11:30:00 -05:00
James Hu 08a2f2dc0f Fix default http option 2017-03-11 22:51:11 -08:00
James Hu 27b3ba8c96 Change http_options to http 2017-03-11 22:50:36 -08:00
Avinash afc4e2664e Feature: Added attributes of Net::HTTP
To support wide variety of attributes provides by Net::HTTP class.
2017-02-28 19:29:56 +05:30
James Hu 1b2301a0c1 Add option to verify SSL 2016-10-11 22:11:08 -07:00
bapirex ccbd3d588d Ignore SSL cerificate validation since we're hosting on localhost anyway... 2016-10-11 14:51:40 -07:00
bapirex b027a79c42 Require addressable in client.rb and Revert gemspec 2016-09-30 08:53:49 -07:00
bapirex 7fd1c8e9a7 Use Addressable instead of URI in client.rb 2016-09-27 13:02:17 -07:00
Yusei Yamanaka f065acbd63 Replace the parsing cookie logic instead of cookiejar gem 2015-08-27 18:51:26 +09:00
Yusei Yamanaka 618e170f28 Use Addressable::URI#hostname instead of Addressable::URI#host 2015-08-12 00:32:08 +09:00
James Hu 083c921296 Require cookiejar 2015-06-04 23:07:43 -07:00
James Hu 08fc29d15e Rebundle and rename 2015-06-05 03:08:32 +00:00