module documentation
HTTP server for dulwich that implements the git smart HTTP protocol.
| Class | |
Reader for chunked transfer encoding streams. |
| Class | |
WSGI middleware that unzips gzip-encoded requests before passing on to the underlying application. |
| Class | |
Protocol for handler constructors. |
| Class | |
Class encapsulating the state of a git WSGI application. |
| Class | |
Class encapsulating the state of a single git HTTP request. |
| Class | |
WSGI middleware that limits the input length of a request to that specified in Content-Length. |
| Class | |
ServerHandler that uses dulwich's logger for logging exceptions. |
| Class | |
WSGIRequestHandler that uses dulwich's logger for logging exceptions. |
| Class | |
WSGIServer that uses dulwich's logger for error handling. |
| Function | cache |
Generate headers for caching forever. |
| Function | date |
Convert a timestamp to an HTTP date string. |
| Function | get |
Send a git pack index file. |
| Function | get |
Send git info/packs file listing available packs. |
| Function | get |
Send git info/refs for discovery. |
| Function | get |
Send a loose git object. |
| Function | get |
Send a git pack file. |
| Function | get |
Get a Repo instance for the given backend and URL regex match. |
| Function | get |
Send a plain text file from the repository. |
| Function | handle |
Handle a git service request (upload-pack or receive-pack). |
| Function | main |
Entry point for starting an HTTP git server. |
| Function | make |
Factory function to create an instance of HTTPGitApplication. |
| Function | send |
Send a file-like object to the request output. |
| Function | url |
Extract the URL prefix from a regex match. |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Constant | NO |
Undocumented |
| Variable | logger |
Undocumented |
| Class | _ |
Wrapper class to limit the length of reads from a file-like object. |
| Function | _chunk |
Undocumented |
| Function | _url |
Undocumented |
def make_wsgi_chain(backend:
Backend, dumb: bool = False, handlers: dict[ bytes, Callable[ ..., Any]] | None = None, fallback_app: WSGIApplication | None = None) -> WSGIApplication:
¶
Factory function to create an instance of HTTPGitApplication.
Correctly wrapped with needed middleware.
Send a file-like object to the request output.
Returns: Iterator over the contents of the file, as chunks.
| Parameters | |
req:HTTPGitRequest | The HTTPGitRequest object to send output to. |
f:BinaryIO | None | An open file-like object to send; will be closed. |
contentstr | The MIME type for the file. |
| Returns | |
Iterator[ | Undocumented |