You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by Apache Wiki <wi...@apache.org> on 2006/12/02 18:34:17 UTC

[Mod_python Wiki] Update of "MostMinimalRequestHandler" by JoreyBump

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Mod_python Wiki" for change notification.

The following page has been changed by JoreyBump:
http://wiki.apache.org/mod_python/MostMinimalRequestHandler

New page:
====== The Most Minimal Request Handler ======

Let's begin at the beginning. Here is the most minimal request handler possible:

  def handler(req):
      return 0

The server will respond with something like this (depending on its configuration):

  HTTP/1.x 200 OK
  Date: Sat, 02 Dec 2006 17:29:23 GMT
  Server: Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.7g
  Pragma: no-cache
  Cache-Control: no-cache
  Expires: -1
  Keep-Alive: timeout=5, max=100
  Connection: Keep-Alive
  Transfer-Encoding: chunked
  Content-Type: text/html;charset=utf-8