Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Gzip/Inflate #375

Merged
merged 4 commits into from
Dec 25, 2016
Merged

Support for Gzip/Inflate #375

merged 4 commits into from
Dec 25, 2016

Commits on Sep 20, 2016

  1. Support for Gzip/Inflate

    Issue: httprb#113
    Piotr Boniecki committed Sep 20, 2016
    Configuration menu
    Copy the full SHA
    8978004 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2016

  1. Optional auto_inflate and auto_deflate features

    Can be used this way:
    
        # body will be automatically decoded when Content-Encoding is set to gzip or deflate
        HTTP.use(:auto_inflate).headers("Accept-Encoding" => "gzip").get("https://github.com").to_s
    
        # request body will be automatically encoded with gzip. Content-Encoding header will be automatically set to gzip
        HTTP.use(:auto_deflate).post("https://github.com", body: "Some body").to_s
    
        # both features can be used at the same time
        HTTP.use(:auto_inflate, :auto_deflate).headers("Accept-Encoding" => "gzip").post("https://github.com", body: "Some body")
    
        # deflate encoding can be used to encode body
        HTTP.use(auto_deflate: { method: :deflate }).headers("Accept-Encoding" => "gzip").post("https://github.com", body: "Some body")
    Piotr Boniecki committed Sep 26, 2016
    Configuration menu
    Copy the full SHA
    9542da4 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2016

  1. Relax rubocop checks a bit

    Increase Metrics/MethodLength to 25
    Disable Metrics/ClassLength on HTTP:Options and DummyServer::Servlet
    
    httprb#375 (comment)
    Piotr Boniecki committed Oct 7, 2016
    Configuration menu
    Copy the full SHA
    72746c4 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2016

  1. Fix JRuby problem with closed stream

    It seems `Zlib::GzipWriter.wrap` behave differently with JRuby and ruby MRI.
    See jruby/jruby#4249.
    Piotr Boniecki committed Oct 26, 2016
    Configuration menu
    Copy the full SHA
    3bc55cd View commit details
    Browse the repository at this point in the history