Package circuits :: Package web :: Module constants

Module constants

Global Constants

This module implements required shared global constants.


Version: 1.2.1

Variables
  BUFFER_SIZE = 4096
  SERVER_PROTOCOL = (1, 1)
  SERVER_VERSION = 'circuits/1.2.1'
  DEFAULT_ERROR_MESSAGE = '<!DOCTYPE html PUBLIC "-//W3C//DTD XH...
  RESPONSES = {100: ('Continue', 'Request received, please conti...
Variables Details

DEFAULT_ERROR_MESSAGE

Value:
'''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"\
></meta>
    <title>%(status)s</title>
    <style type="text/css">
...

RESPONSES

Value:
{100: ('Continue', 'Request received, please continue'),
 101: ('Switching Protocols',
       'Switching to new protocol; obey Upgrade header'),
 200: ('OK', 'Request fulfilled, document follows'),
 201: ('Created', 'Document created, URL follows'),
 202: ('Accepted', 'Request accepted, processing continues off-line'),
 203: ('Non-Authoritative Information',
       'Request fulfilled from cache'),
...