class documentation
class HTTPGitRequest:
Constructor: HTTPGitRequest(environ, start_response, dumb, handlers)
Class encapsulating the state of a single git HTTP request.
| Method | __init__ |
Initialize HTTPGitRequest. |
| Method | add |
Add a header to the response. |
| Method | cache |
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 |
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 |
Undocumented |
| Instance Variable | _headers |
Undocumented |
| Instance Variable | _start |
Undocumented |
def __init__(self, environ:
WSGIEnvironment, start_response: StartResponse, dumb: bool = False, handlers: dict[ bytes, HandlerConstructor | Callable[ ..., Any]] | None = None):
¶
Initialize HTTPGitRequest.
| Parameters | |
environ:WSGIEnvironment | WSGI environment dictionary |
startStartResponse | WSGI start_response callable |
dumb:bool | Whether to use dumb HTTP protocol |
handlers:dict[ | Optional handler overrides |