Permalink
Commits on Mar 26, 2012
  1. Pass the `Response` object to the callback instead of self

    * Add some try/catch around the callback execution.
    * Add a few tests to validate the callback.
    franck cuny committed Mar 23, 2012
Commits on Mar 23, 2012
  1. Asynchronous HTTP request

    `HTTPClientAsync` uses Python threading and queues and provides callback
    mechanisms.
    
    This client work exactly as `HTTPClient`, except it will do request
    asynchronously.
    
        >>> from httpclient.async import HTTPClientAsync
        >>> from http import Request
        >>> ua = HTTPClientAsync()
        >>> req = Request('GET', 'http://proximobus.appspot.com/agencies.json')
        >>> res = ua.request(req)
        >>> print res.content
    franck cuny committed Mar 23, 2012
Commits on Mar 15, 2012
  1. @franckcuny
  2. @franckcuny
  3. @franckcuny
Commits on Feb 14, 2012
  1. @franckcuny

    add README

    franckcuny committed Feb 14, 2012
Commits on Feb 12, 2012
  1. @franckcuny
Commits on Feb 10, 2012
  1. @franckcuny

    Start writing the documentation

     * add bootstrap theme and configuration
     * update the synopsis for HTTPClient
     * start to write a tutorial on how to use the library and how to write tests
       with a custom useragent
    franckcuny committed Feb 10, 2012
  2. @franckcuny

    fix requirements.txt

    franckcuny committed Feb 10, 2012
  3. @franckcuny

    add a simple exemple using GitHub API

    this is a simple exemple on how to use the library and how to write tests
    using a custom useragent.
    franckcuny committed Feb 10, 2012
  4. @franckcuny

    closes GH-9: change the default useragent string

    The new default useragent string is:
     python-httpclient/$VERSION
    
    Signed-off-by: franck cuny <franck.cuny@gmail.com>
    franckcuny committed Feb 10, 2012
Commits on Jan 31, 2012
  1. @franckcuny

    pep8 compliant

    Signed-off-by:
    franck cuny <franck.cuny@gmail.com>
    franckcuny committed Jan 31, 2012
  2. @franckcuny

    closes GH-2: Add httpclient.simple

    httpclient.simple export the following methods:
    
    * get
    * head
    * mirror
    * client
    
    When you don't need to uses and configures a custom useragent, this
    module should be enough for the common case
    
    Signed-off-by:
    franck cuny <franck.cuny@gmail.com>
    franckcuny committed Jan 31, 2012
  3. @franckcuny

    tests are pep8 compliant

    Signed-off-by: franck cuny <franck.cuny@gmail.com>
    franckcuny committed Jan 31, 2012
  4. @franckcuny

    code cleanup

    * rewrite the import to use ()
    * move the HTTPException decorator after __init__
    * rename file to filemane in the mirror method
    
    Signed-off-by: franck cuny <franck.cuny@gmail.com>
    franckcuny committed Jan 31, 2012
Commits on Jan 23, 2012
  1. @franckcuny

    add decorator HTTPException to httpclient

    if client is configured with 'with_exceptions', the HTTP methods will raise an
    exception in case of error
    franckcuny committed Jan 23, 2012
  2. @franckcuny

    simplify import

    franckcuny committed Jan 23, 2012
  3. @franckcuny

    add MIT license

    franckcuny committed Jan 23, 2012
Commits on Jan 22, 2012
  1. @franckcuny

    add doc for httpclient

    franckcuny committed Jan 22, 2012
  2. @franckcuny

    enable autodoc

    franckcuny committed Jan 22, 2012
  3. @franckcuny

    more documentation

    franckcuny committed Jan 22, 2012
  4. @franckcuny

    rename client to httpclient

    franckcuny committed Jan 22, 2012
  5. @franckcuny

    initial import

    franckcuny committed Jan 22, 2012