Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.support.werkzeug.contrib.limiter.StreamLimitMiddleware Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 app
 maximum_size

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
data.

Default is 10MB

Definition at line 38 of file limiter.py.


Constructor & Destructor Documentation

def MoinMoin.support.werkzeug.contrib.limiter.StreamLimitMiddleware.__init__ (   self,
  app,
  maximum_size = 1024 * 1024 * 10 
)

Definition at line 47 of file limiter.py.

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


Member Function Documentation

def MoinMoin.support.werkzeug.contrib.limiter.StreamLimitMiddleware.__call__ (   self,
  environ,
  start_response 
)

Definition at line 51 of file limiter.py.

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

Member Data Documentation

Definition at line 48 of file limiter.py.

Definition at line 49 of file limiter.py.


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