Known subclasses: dulwich.tests.test_web.TestHTTPGitRequest

Class encapsulating the state of a single git HTTP request.
Instance Variable environ the WSGI environment for the request.
Method __init__ Undocumented
Method add_header Add a header to the response.
Method respond Begin a response with the given status and other headers.
Method not_found Begin a HTTP 404 response and return the text of a message.
Method forbidden Begin a HTTP 403 response and return the text of a message.
Method error Begin a HTTP 500 response and return the text of a message.
Method nocache Set the response to never be cached by the client.
Method cache_forever Set the response to be cached forever by the client.
environ =
the WSGI environment for the request.
def __init__(self, environ, start_response, dumb=False, handlers=None):
Undocumented
def add_header(self, name, value):
Add a header to the response.
def respond(self, status=HTTP_OK, content_type=None, headers=None):
Begin a response with the given status and other headers.
def not_found(self, message):
Begin a HTTP 404 response and return the text of a message.
def forbidden(self, message):
Begin a HTTP 403 response and return the text of a message.
def error(self, message):
Begin a HTTP 500 response and return the text of a message.
def nocache(self):
Set the response to never be cached by the client.
def cache_forever(self):
Set the response to be cached forever by the client.
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.