wsgi: move constants to the top of the file

This commit is contained in:
Denis Bilenko
2009-06-23 17:04:57 +07:00
parent 698a8a3346
commit 7881e026e3

View File

@@ -25,6 +25,7 @@ import os
import sys
import time
import traceback
from eventlet.green import urllib
from eventlet.green import socket
from eventlet.green import BaseHTTPServer
@@ -32,9 +33,9 @@ from eventlet.pool import Pool
DEFAULT_MAX_SIMULTANEOUS_REQUESTS = 1024
DEFAULT_MAX_HTTP_VERSION = 'HTTP/1.1'
MAX_REQUEST_LINE = 8192
MINIMUM_CHUNK_SIZE = 4096
# Weekday and month names for HTTP date/time formatting; always English!
@@ -92,10 +93,6 @@ class Input(object):
return iter(self.read())
MAX_REQUEST_LINE = 8192
MINIMUM_CHUNK_SIZE = 4096
class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
protocol_version = 'HTTP/1.1'
minimum_chunk_size = MINIMUM_CHUNK_SIZE