class documentation

class _RetryAfter(HTTPException):

Known subclasses: werkzeug.exceptions.ServiceUnavailable, werkzeug.exceptions.TooManyRequests

View In Hierarchy

Adds an optional retry_after parameter which will set the Retry-After header. May be an int number of seconds or a ~datetime.datetime.
Method __init__ Undocumented
Method get​_headers Get a list of headers.
Instance Variable retry​_after Undocumented

Inherited from HTTPException:

Class Method wrap Create an exception that is a subclass of the calling HTTP exception and the exception argument.
Method __call__ Call the exception as WSGI application.
Method __repr__ Undocumented
Method __str__ Undocumented
Method get​_body Get the HTML body.
Method get​_description Get the description.
Method get​_response Get a response object. If one was passed to the exception it's returned directly.
Class Variable code Undocumented
Instance Variable description Undocumented
Instance Variable response Undocumented
Property name The status name.
def __init__(self, description=None, response=None, retry_after=None):

Undocumented

Parameters
description:t.Optional[str]Undocumented
response:t.Optional[Response]Undocumented
retry​_after:t.Optional[t.Union[datetime, int]]Undocumented
def get_headers(self, environ=None, scope=None):
Get a list of headers.
Parameters
environ:t.Optional[WSGIEnvironment]Undocumented
scope:t.Optional[dict]Undocumented
Returns
t.List[t.Tuple[str, str]]Undocumented
retry_after =

Undocumented