Package Honey :: Package Fakes :: Package HTTP :: Module base_http
[show private | hide private]
[frames | no frames]

Module Honey.Fakes.HTTP.base_http

Base classes for fake http server
Classes
FakeHTTP Define the HTTP Protocol
HTTPRequest  

Variable Summary
str GET
str HEAD
str HTTP10
str HTTP11
str INDEX
str JPG
dict MAP_ERROR
dict METHODS
str PATH
str POST
str ROOT
str VERSION

Variable Details

GET

Type:
str
Value:
'GET'                                                                  

HEAD

Type:
str
Value:
'HEAD'                                                                 

HTTP10

Type:
str
Value:
'HTTP/1.0'                                                             

HTTP11

Type:
str
Value:
'HTTP/1.1'                                                             

INDEX

Type:
str
Value:
'/index.html'                                                          

JPG

Type:
str
Value:
'''HTTP/1.1 200 OK
Date: %(time)s
Server: %(version)s
Last-Modified: Thu, 14 Aug 2003 00:46:45 GMT
Accept-Ranges: bytes
Content-Length: %(length)s
Connection: close
Content-Type: image/jpeg
...                                                                    

MAP_ERROR

Type:
dict
Value:
{404: 'HTTP/1.1 404 Not Found\nDate: %(time)s\nServer: %(version)s\nCo\
nnection: close\nContent-Type: text/html; charset=iso-8859-1\n\n<!DOCT\
YPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<HTML><HEAD>\n<TITLE>404\
 Not Found</TITLE>\n</HEAD><BODY>\n<H1>Not Found</H1>\nThe requested U\
RL %(url)s was not found on this server.<P>\n</BODY></HTML>',
 501: 'HTTP/1.1 501 Method Not Implemented\nDate: %(time)s\nServer: %(\
version)s\nAllow: %(methods)s\nConnection: close\nContent-Type: text/h\
tml; charset=iso-8859-1\n\n<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.\
...                                                                    

METHODS

Type:
dict
Value:
{'HTTP/1.0': ['GET', 'HEAD', 'POST'], 'HTTP/1.1': ['GET', 'HEAD', 'POS\
T']}                                                                   

PATH

Type:
str
Value:
'/var/www'                                                             

POST

Type:
str
Value:
'POST'                                                                 

ROOT

Type:
str
Value:
'/'                                                                    

VERSION

Type:
str
Value:
'Apache/1.3.27 (Unix) PHP/4.3.2'                                       

Generated by Epydoc 1.1 on Sun Dec 7 16:05:59 2003 http://epydoc.sf.net