-
Notifications
You must be signed in to change notification settings - Fork 3
/
PKG-INFO
76 lines (55 loc) · 2.18 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Metadata-Version: 1.0
Name: http
Version: 0.02
Summary: HTTP library for Python
Home-page: https://github.com/franckcuny/http
Author: Franck Cuny
Author-email: franck.cuny@gmail.com
License: MIT
Description: http a HTTP library for Python
==============================
http is heavily inspired by the `HTTP::Message <https://metacpan.org/module/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)
Links
-----
- `Documentation <http://readthedocs.org/docs/http/en/latest/>`__.
- `Repository <git://github.com/franckcuny/http.git>`__.
How to get?
-----------
Install with "pip" command:
$ pip install http
or check out development version:
$ git clone git://github.com/franckcuny/http.git
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: License :: OSI Approved :: MIT License