Lines Matching refs:HTTPConnection
34 .. class:: HTTPConnection(host, port=None[, timeout], source_address=None, \
37 An :class:`HTTPConnection` instance represents one transaction with an HTTP
52 >>> h1 = http.client.HTTPConnection('www.python.org')
53 >>> h2 = http.client.HTTPConnection('www.python.org:80')
54 >>> h3 = http.client.HTTPConnection('www.python.org', 80)
55 >>> h4 = http.client.HTTPConnection('www.python.org', 80, timeout=10)
73 A subclass of :class:`HTTPConnection` that uses SSL for communication with
223 by :meth:`HTTPConnection.getresponse` when the attempt to read the response
253 HTTPConnection Objects
256 :class:`HTTPConnection` instances have the following methods:
259 .. method:: HTTPConnection.request(method, url, body=None, headers={}, *, \
294 HTTPConnection object assumes that all encoding is handled by the
314 .. method:: HTTPConnection.getresponse()
326 :class:`HTTPConnection` object will be ready to reconnect when
330 .. method:: HTTPConnection.set_debuglevel(level)
340 .. method:: HTTPConnection.set_tunnel(host, port=None, headers=None)
355 the :meth:`~HTTPConnection.set_tunnel` method::
365 .. method:: HTTPConnection.connect()
371 .. audit-event:: http.client.connect self,host,port http.client.HTTPConnection.connect
374 .. method:: HTTPConnection.close()
379 .. attribute:: HTTPConnection.blocksize
390 .. method:: HTTPConnection.putrequest(method, url, skip_host=False, \
401 .. method:: HTTPConnection.putheader(header, argument[, ...])
409 .. method:: HTTPConnection.endheaders(message_body=None, *, encode_chunked=False)
436 .. method:: HTTPConnection.send(data)
442 .. audit-event:: http.client.send self,data http.client.HTTPConnection.send
585 >>> conn = http.client.HTTPConnection("bugs.python.org")
608 >>> conn = http.client.HTTPConnection("localhost", 8080)