Edit file File name : BaseHTTPServer.pyo Content :� zfc @ 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 BaseHTTPRequestHandleri����N( t filterwarningst catch_warningst ignores .*mimetools has been removeds� <head> <title>Error response</title> </head> <body> <h1>Error response</h1> <p>Error code %(code)d. <p>Message: %(message)s. <p>Error code explanation: %(code)s = %(explain)s. </body> s text/htmlc C s( | j d d � j d d � j d d � S( Nt &s &t <s <t >s >( t replace( t html( ( s&