Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install http

How to install http

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install http
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.02 Available View build log
0.1 Failed View build log
Windows (64-bit)
0.02 Available View build log
0.1 Failed View build log
Mac OS X (10.5+)
0.02 Available View build log
0.1 Failed View build log
Linux (32-bit)
0.02 Available View build log
0.1 Failed View build log
Linux (64-bit)
0.02 Available View build log
0.1 Failed View build log
 
Author
License
MIT
Imports
Lastest release
version 0.02 on Feb 12th, 2012

http is heavily inspired by the HTTP::Message distribution.

Synopsis

>>> from http import Request
>>> request = Request('GET', 'http://pypi.python.org')
>>> print request.method
GET

Components

http provides a few components to build HTTP messages:

  • Headers: a class to manipulates HTTP headers
  • Request: a class to encapsulate a HTTP request
  • Response: a class to encapsulate a HTTP response
  • Date: a class to convert date to and from ISO 8601
  • Url: a class to manipulate url
Headers
>>> from http import Headers
>>> h = Headers()
>>> h.add('Content-Type', 'application/json')
Request
>>> from http import Request
>>> r = Request('GET', 'htttp://lumberjaph.net')
Response
>>> from http import Response
>>> r = Response(200)

How to get?

Install with "pip" command:

$ pip install http

or check out development version:

$ git clone git://github.com/franckcuny/http.git

Subscribe to package updates

Last updated Feb 12th, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.