Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes


Detailed Description

Limits the input stream to a given number of bytes.  This is useful if
you have a WSGI application that reads form data into memory (django for
example) and you don't want users to harm the server by uploading tons of

Default is 10MB

Definition at line 38 of file

Constructor & Destructor Documentation

def (   self,
  maximum_size = 1024 * 1024 * 10 

Definition at line 47 of file

00048     def __init__(self, app, maximum_size=1024 * 1024 * 10):
00049 = app
00050         self.maximum_size = maximum_size

Member Function Documentation

def (   self,

Definition at line 51 of file

00052     def __call__(self, environ, start_response):
00053         environ['wsgi.input'] = _SilentLimitedStream(environ, self.maximum_size)
00054         return, start_response)

Member Data Documentation

Definition at line 48 of file

Definition at line 49 of file

The documentation for this class was generated from the following file: