예제 #1
0
 def __init__(self, code, lazy_body, **kw):
     Response.__init__(self, code, '', **kw)
     self.lazy_body = lazy_body
예제 #2
0
 def __init__(self, *args, **kw):
     Response.__init__(self, 403, '', **kw)
예제 #3
0
 def __init__(self, *args, **kw):
     Response.__init__(self, self.code, '', **kw)
     self.lazy_body = self.msg
     self.args = args
예제 #4
0
 def __init__(self, code=400, lazy_body=None, **kw):
     Response.__init__(self, code, '', **kw)
     if lazy_body:
         self.lazy_body = lazy_body
예제 #5
0
 def __init__(self, code, lazy_body, **kw):
     Response.__init__(self, code, '', **kw)
     self.lazy_body = lazy_body
예제 #6
0
 def __init__(self, *args, **kw):
     Response.__init__(self, 400, '', **kw)
     self.lazy_body = self.msg
     self.args = args
예제 #7
0
 def __init__(self, *args):
     Response.__init__(self, 400, self.msg.format(*args))
예제 #8
0
 def __init__(self, extension):
     body = "Failure to typecast extension '{0}'".format(extension)
     Response.__init__(self, code=404, body=body)
예제 #9
0
 def __init__(self, *args):
     Response.__init__(self, 400, self.msg.format(*args))
예제 #10
0
 def __init__(self, code=400, lazy_body=None, **kw):
     Response.__init__(self, code, '', **kw)
     if lazy_body:
         self.lazy_body = lazy_body
예제 #11
0
 def __init__(self, *args, **kw):
     Response.__init__(self, 403, '', **kw)
예제 #12
0
 def __init__(self):
     Response.__init__(self, code=400, body="Possible CRLF Injection detected.")
예제 #13
0
 def __init__(self, ctype):
     Response.__init__(self, code=415, body="Unknown body Content-Type: %s" % ctype)
예제 #14
0
 def __init__(self, header):
     Response.__init__(self, code=400, body="Malformed header: %s" % header)