wsgi: move constants to the top of the file
This commit is contained in:
@@ -25,6 +25,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from eventlet.green import urllib
|
from eventlet.green import urllib
|
||||||
from eventlet.green import socket
|
from eventlet.green import socket
|
||||||
from eventlet.green import BaseHTTPServer
|
from eventlet.green import BaseHTTPServer
|
||||||
@@ -32,9 +33,9 @@ from eventlet.pool import Pool
|
|||||||
|
|
||||||
|
|
||||||
DEFAULT_MAX_SIMULTANEOUS_REQUESTS = 1024
|
DEFAULT_MAX_SIMULTANEOUS_REQUESTS = 1024
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_MAX_HTTP_VERSION = 'HTTP/1.1'
|
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!
|
# Weekday and month names for HTTP date/time formatting; always English!
|
||||||
@@ -92,10 +93,6 @@ class Input(object):
|
|||||||
return iter(self.read())
|
return iter(self.read())
|
||||||
|
|
||||||
|
|
||||||
MAX_REQUEST_LINE = 8192
|
|
||||||
MINIMUM_CHUNK_SIZE = 4096
|
|
||||||
|
|
||||||
|
|
||||||
class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
|
class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
|
||||||
protocol_version = 'HTTP/1.1'
|
protocol_version = 'HTTP/1.1'
|
||||||
minimum_chunk_size = MINIMUM_CHUNK_SIZE
|
minimum_chunk_size = MINIMUM_CHUNK_SIZE
|
||||||
|
Reference in New Issue
Block a user