~pythonregexp2.7/python/issue2636-12

« back to all changes in this revision

Viewing changes to Doc/library/httplib.rst

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:52:42 UTC
  • mfrom: (39033.1.3 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609145242-9m268zc6u87rp1vp
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
1
:mod:`httplib` --- HTTP protocol client
3
2
=======================================
4
3
 
5
4
.. module:: httplib
6
5
   :synopsis: HTTP and HTTPS protocol client (requires sockets).
7
6
 
 
7
.. note::
 
8
   The :mod:`httplib` module has been renamed to :mod:`http.client` in Python
 
9
   3.0.  The :term:`2to3` tool will automatically adapt imports when converting
 
10
   your sources to 3.0.
 
11
 
8
12
 
9
13
.. index::
10
14
   pair: HTTP; protocol
40
44
   be raised if the status line can't be parsed as a valid HTTP/1.0 or 1.1
41
45
   status line.  If the optional *timeout* parameter is given, blocking
42
46
   operations (like connection attempts) will timeout after that many seconds
43
 
   (if it is not given or ``None``, the global default timeout setting is used).
 
47
   (if it is not given, the global default timeout setting is used).
44
48
 
45
49
   For example, the following calls all create instances that connect to the server
46
50
   at the same host and port::