Class t.w.d.h.ResponseQueue(object):

Part of twisted.web2.dav.http View Source View In Hierarchy

Stores a list of (typically error) responses for use in a MultiStatusResponse.
Method __init__
Method add Add a response.
Method response Generate a MultiStatusResponse with the responses contained in the
def __init__(self, path_basename, method, success_response): (source)
Parameterspath_basenamethe base path for all responses to be added to the queue. All paths for responses added to the queue must start with path_basename, which will be stripped from the beginning of each path to determine the response's URI.
methodthe name of the method generating the queue.
success_responsethe response to return in lieu of a MultiStatusResponse if no responses are added to this queue.
def add(self, path, what): (source)
Add a response.
Parameterspatha path, which must be a subpath of path_basename as provided to __init__.
whata status code or a Failure for the given path.
def response(self): (source)
Generate a MultiStatusResponse with the responses contained in the queue or, if no such responses, return the success_response provided to __init__.
Returnsthe response.
API Documentation for twisted, generated by pydoctor.