pyre.http.Request

Module Contents

class pyre.http.Request.Request

Parse and analyze an HTTP request

url
command
version
headers
payload
described = False
complete = False
HEADER_ENCODING = iso-8859-1
blank
keyval
protocol
extract(self, server, chunk)

Process a {chunk} of bytes

extractHeaders(self, server, chunk)

Extract RFC2822 headers from the bytes sent by the peer

extractPayload(self, server, chunk, offset)

Extract a {chunk} of bytes and store them

dump(self, channel, indent='', showHeaders=True, showPayload=True)

Place debugging information in the given channel