^Rc @ s d Z d Z d d g Z d d l Z d d l Z d d l Z d d l m Z m Z e - e j rx e d d e n d d l Z Wd QXd d l Z d Z d Z d Z d e j f d YZ d e j f d YZ e e d d Z e d k re n d S( s HTTP server base class. Note: the class in this module doesn't implement any HTTP request; see SimpleHTTPServer for simple implementations of GET, HEAD and POST (including CGI scripts). It does, however, optionally implement HTTP/1.1 persistent connections, as of version 0.3. Contents: - BaseHTTPRequestHandler: HTTP request handler base class - test: test function XXX To do: - log requests even later (to capture byte count) - log user-agent header and other interesting goodies - send error log to separate file s 0.3t HTTPServert BaseHTTPRequestHandleriN( t filterwarningst catch_warningst ignores .*mimetools has been removeds
Error code %(code)d.
Message: %(message)s.
Error code explanation: %(code)s = %(explain)s.
s text/htmlc C s( | j d d j d d j d d S( Nt &s &t