Package wtf :: Package impl :: Package http :: Module _request
[hide private]
[frames] | no frames]

Module _request

source code

This is a simple state pattern implementing the request flow.


Author: André Malo

Classes [hide private]
  RequestTimeout
Request timed out
  ExpectationFailed
Expectation failed
  UnsupportedHTTPVersion
HTTP Version not supported
  UnImplemented
A feature is unimplemented
  InvalidRequestLine
Request line is invalid
  InvalidContentLength
The supplied content length is invalid
  InvalidTransferEncoding
An invalid transfer encoding was supplied
  MissingHostHeader
Host header is mandatory with HTTP/1.1
  StateError
HTTP request state error
  BaseState
Base state class
  RequestInitialState
Initial state of a request, for example on a fresh connection.
  RequestLineReadyState
The headers can be read now
  RequestHeadersReadyState
The body can be read now and/or the response can be started
  ResponseContinueWaitState
We're waiting for either 100 continue emission of send_status
  ResponseStatusWaitState
Waiting for status line
  ResponseHeadersWaitState
We're waiting for headers to be set and sent
  ResponseBodyWaitState
We're waiting for someone to send the response body
  ResponseDoneState
Nothing can be done here anymore
  HTTPRequest
HTTP Request abstraction
Variables [hide private]
str CRLF = '\r\n'
ASCII CRLF sequence (rn)
  __package__ = 'wtf.impl.http'