Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 6, 2011
  1. Bump to 2.1.6.1

    authored
Commits on Dec 20, 2010
  1. Updated README.txt for 2.1.6.

    authored
  2. Set encoding to ASCII_8BIT as a response.

    authored
    In the future, we should try to detect 'Content-Encoding' HTTP header
    and handle body encoding properly like open-uri.rb.
  3. Make Keep-Alive test use threads properly.

    authored
    The former test depends on threads execution order so it didn't work as
    expected when I increased client threads or let it run on JRuby.
    Inserted step-by-step assertions.
Commits on Dec 15, 2010
  1. Revert "Adding local_sockaddr"

    authored
    This reverts commit bc6a1b1.
    
    Conflicts:
    
    	lib/httpclient.rb
    	lib/httpclient/session.rb
  2. Revert "Getting rid of sockaddr/bind attempt, replacing with local_ho…

    authored
    …st and local_port"
    
    This reverts commit e464596.
    
    Conflicts:
    
    	lib/httpclient.rb
    	lib/httpclient/session.rb
    
    Setting fixed local_host and local_port does not work well with current
    SessionManager implementation...
  3. Invalidate pooled sessions for the same destination when we got a Kee…

    authored
    …pAliveDisconnected exception. closes #30.
    
    I know the original intent of #30 is 'create a new (non cached) session
    when we got a KeepAliveDisconnected' but the suggested fix could create
    too much session to the same site I guess... So at this time, I decided
    to invalidate all sessions to the same site. It must include live
    sessions (not expired) but it should not cause performance degrade in
    the situation such as we got KeepAliveDisconnected.
Commits on Dec 14, 2010
  1. Merge https://github.com/icblenke/httpclient into icblenke

    authored
    Conflicts:
    	lib/httpclient.rb
    	lib/httpclient/session.rb
  2. Do not leak sessions (and thus filedescriptors and TCP connections) f…

    Xuân Baldauf authored committed
    …rom the pool. Fix bug http://github.com/nahi/httpclient/issues/issue/29 .
    
    closes #29.
    Signed-off-by: Hiroshi Nakamura <nahi@ruby-lang.org>
Commits on Dec 13, 2010
  1. Replace timeout only in CRuby 1.8. Timeout.timeout of CRuby 1.9 and J…

    authored
    …Ruby are already doing the same optimization.
Commits on Dec 12, 2010
  1. Applied a patch from ibc: DigestAuth header quotation error: closes #27.

    authored
    qup and algorithm is not required to be quoted. RFC2617 includes an
    example 'qop="auth,auth-int"' though...
  2. Applied the patch in #44: let Connection#pop raise the Exception when…

    authored
    … the request finished with an Exception.
  3. RDoc typo fixed. closes #32.

    authored
  4. Added transparent_gzip_decompression property. closes #42.

    authored
    Applied a patch from Teshootub7.  With setting
    HTTPClient#transparent_gzip_decompression = true, HTTPClient tries to do
    gzip/deflate content transmission. Following explanation is by
    Teshootub7.
    
    All you need to use "transparent gzip decompression" is done by:
    
      clnt.transparent_gzip_decompression = true
    
    Then you can retrieve a document as usual.
    
      res = clnt.get("http://www.debian.org/")
    
    The document is transferred with gzip compressed.
    
      res.header["Content-Encoding"]
      => ["gzip"]
      res.header["Content-Length"]
      => ["4422"]
      res.content.length
      => 13942
    
    And you can read the content without knowing it is compressed or not.
  5. Use absolute URI iif via proxy AND not HTTPS. closes #41.

    authored
    Thanks tai for reporting this.
  6. @chetan

    when debugging, don't dump binary data; display message instead

    chetan authored committed
    Signed-off-by: Hiroshi Nakamura <nahi@ruby-lang.org>
  7. @chetan

    rewind file part after dumping it [caused problem when using digest a…

    chetan authored committed
    …uth]
    
    Signed-off-by: Hiroshi Nakamura <nahi@ruby-lang.org>
Commits on May 22, 2010
Commits on Apr 2, 2010
  1. JRuby exception support: see #25.

    authored
    JRuby may raise IOError instead of ECONNRESET.  Catch this for
    KeepAliveDisconnected detection.
Something went wrong with that request. Please try again.