MCPcopy
hub / github.com/benoitc/gunicorn / LimitRequestLine

Class LimitRequestLine

gunicorn/http/errors.py:126–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124
125
126class LimitRequestLine(ParseException):
127 def __init__(self, size, max_size=None):
128 self.size = size
129 self.max_size = max_size
130
131 def __str__(self):
132 if self.max_size is None:
133 return str(self.size)
134 return "Request Line is too large (%s > %s)" % (self.size, self.max_size)
135
136
137class LimitRequestHeaders(ParseException):

Callers 2

_parse_fastMethod · 0.90
read_lineMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected