http.client — HTTP protocol client — Python 3.16.0a0 documentation

docs.python.org

Tin mới

http — HTTP modules

ftplib — FTP protocol client

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Internet Protocols and Support

urllib.request: Extensible library for opening URLs.

This module defines classes that implement the client side of the HTTP and HTTPS protocols. It is normally not used directly — the module urllib.request uses it to handle URLs that use HTTP and HTTPS.

ssl: TLS/SSL wrapper for socket objects

HTTPS support is only available if Python was compiled with SSL support (through the ssl module).

WebAssembly platforms

This module does not work or is not available on WebAssembly. See WebAssembly platforms for more information.

http.server.BaseHTTPRequestHandler.headers

Parse the headers from a file pointer fp representing a HTTP request/response. The file has to be a BufferedIOBase reader (i.e. not text) and must provide a valid RFC 5322 style header.

ConnectionResetError

A subclass of ConnectionResetError and BadStatusLine. Raised by HTTPConnection.getresponse() when the attempt to read the response results in no data read from the connection, indicating that the remote end has closed th

collections.abc.Iterable

Send a blank line to the server, signalling the end of the headers. The optional message_body argument can be used to pass a message body associated with the request.

email.message.Message

A http.client.HTTPMessage instance containing the response headers. http.client.HTTPMessage is a subclass of email.message.Message.

email.message.EmailMessage

Headers of the response in the form of an email.message.EmailMessage instance.