package documentation
HTTP module.
| Module | auth |
HTTP authentication module. |
| Module | client |
HTTP client module. |
| Module | server |
HTTP server module. |
From __init__.py:
| Class | |
Base class for HTTP server and client. |
| Class | |
Data structure for HTTP request start line. |
| Class | |
Data structure for HTTP message. |
| Class | |
Reads HTTP message from socket. |
| Class | |
Writes an HTTP message to a socket. |
| Class | |
Data structure for HTTP response start line. |
| Class | |
Data class for SSL key and certificate. |
| Exception | |
502 Bad Gateway |
| Exception | |
400 Bad Request |
| Exception | |
409 Conflict |
| Exception | |
Internal exception for a closed connection. |
| Exception | |
Internal exception for HTTP errors. |
| Exception | |
Undocumented |
| Exception | |
403 Forbidden |
| Exception | |
504 Gateway Timeout |
| Exception | |
410 Gone |
| Exception | |
500 Internal Server Error |
| Exception | |
411 Length Required |
| Exception | |
405 Method Not Allowed |
| Exception | |
406 Not Acceptable |
| Exception | |
404 Not Found |
| Exception | |
501 Not Implemented |
| Exception | |
412 Precondition Failed |
| Exception | |
408 Request Timeout |
| Exception | |
503 Service Unavailable |
| Exception | |
Internal exception for errors during SSL handshake. |
| Exception | |
Internal exception for socket timeouts. |
| Exception | |
401 Unauthorized |
| Exception | |
415 Unsupported Media Type |
| Exception | |
505 HTTP Version Not Supported |
| Function | |
Shakes peer's hands. |
| Function | |
Parses HTTP headers. |
| Function | |
Closes the connection. |
| Function | |
Wrapper around socket functions. |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | SOCK |
Undocumented |
| Constant | SOCKOP |
Undocumented |
| Constant | SOCKOP |
Undocumented |
| Constant | SOCKOP |
Undocumented |
| Constant | SOCKOP |
Undocumented |
| Constant | _SSL |
Undocumented |
| Constant | _SSL |
Undocumented |
Wrapper around socket functions.
This function abstracts error handling for socket operations, especially for the complicated interaction with OpenSSL.
| Parameters | |
| sock:socket | Socket for the operation |
| op:int | Operation to execute (SOCKOP_* constants) |
| arg1:any | Parameter for function (if needed) |
| timeout:None or float | Timeout in seconds or None |
| Returns | |
| Return value of socket function | |
Closes the connection.
| Parameters | |
| sock:socket | Socket to be shut down |
| close | How long to wait for the peer to close the connection |
| write | Write timeout for shutdown |
| msgreader:http.HttpMessageReader | Request message reader, used to determine whether peer should close connection |
| force:bool | Whether to forcibly close the connection without waiting for peer |