class documentation

class HTTPGitRequest(object):

Known subclasses: dulwich.tests.test_web.TestHTTPGitRequest

View In Hierarchy

Class encapsulating the state of a single git HTTP request.

Method __init__ Undocumented
Method add_header Add a header to the response.
Method cache_forever Set the response to be cached forever by the client.
Method error Begin a HTTP 500 response and return the text of a message.
Method forbidden Begin a HTTP 403 response and return the text of a message.
Method nocache Set the response to never be cached by the client.
Method not_found Begin a HTTP 404 response and return the text of a message.
Method respond Begin a response with the given status and other headers.
Instance Variable dumb Undocumented
Instance Variable environ the WSGI environment for the request.
Instance Variable handlers Undocumented
Instance Variable _cache_headers Undocumented
Instance Variable _headers Undocumented
Instance Variable _start_response Undocumented
def __init__(self, environ, start_response, dumb=False, handlers=None):

Undocumented

Parameters
environUndocumented
start_responseUndocumented
dumb:boolUndocumented
handlersUndocumented
def add_header(self, name, value):

Add a header to the response.

def cache_forever(self):

Set the response to be cached forever by the client.

def error(self, message):

Begin a HTTP 500 response and return the text of a message.

Parameters
message:strUndocumented
Returns
bytesUndocumented
def forbidden(self, message):

Begin a HTTP 403 response and return the text of a message.

Parameters
message:strUndocumented
Returns
bytesUndocumented
def nocache(self):

Set the response to never be cached by the client.

def not_found(self, message):

Begin a HTTP 404 response and return the text of a message.

Parameters
message:strUndocumented
Returns
bytesUndocumented
def respond(self, status=HTTP_OK, content_type=None, headers=None):

Begin a response with the given status and other headers.

Parameters
status:strUndocumented
content_type:Optional[str]Undocumented
headers:Optional[List[Tuple[str, str]]]Undocumented
dumb =

Undocumented

environ =

the WSGI environment for the request.

handlers =

Undocumented

_cache_headers =

Undocumented

_headers: List[Tuple[str, str]] =

Undocumented

_start_response =

Undocumented