IdentifiantMot de passe
Mot de passe oublié ?Je m'inscris ! (gratuit)
18.7.2 HTTPResponse Objects

18.7.2 HTTPResponse Objects

HTTPResponse instances have the following methods and attributes:

read( [amt])
Reads and returns the response body, or up to the next amt bytes.

getheader( name[, default])
Get the contents of the header name, or default if there is no matching header.

getheaders( )
Return a list of (header, value) tuples. New in version 2.4.

A mimetools.Message instance containing the response headers.

HTTP protocol version used by server. 10 for HTTP/1.0, 11 for HTTP/1.1.

Status code returned by server.

Reason phrase returned by server.

See About this document... for information on suggesting changes.