dulwich.web
module documentationdulwich
Function | date_time_string | Undocumented |
Function | url_prefix | Extract the URL prefix from a regex match. |
Function | get_repo | Get a Repo instance for the given backend and URL regex match. |
Function | send_file | Send a file-like object to the request output. |
Function | get_text_file | Undocumented |
Function | get_loose_object | Undocumented |
Function | get_pack_file | Undocumented |
Function | get_idx_file | Undocumented |
Function | get_info_refs | Undocumented |
Function | get_info_packs | Undocumented |
Function | handle_service_request | Undocumented |
Class | HTTPGitRequest | Class encapsulating the state of a single git HTTP request. |
Class | HTTPGitApplication | Class encapsulating the state of a git WSGI application. |
Class | GunzipFilter | WSGI middleware that unzips gzip-encoded requests before passing on to the underlying application. |
Class | LimitedInputFilter | WSGI middleware that limits the input length of a request to that specified in Content-Length. |
Function | make_wsgi_chain | Factory function to create an instance of HTTPGitApplication, correctly wrapped with needed middleware. |
Class | ServerHandlerLogger | ServerHandler that uses dulwich's logger for logging exceptions. |
Class | WSGIRequestHandlerLogger | WSGIRequestHandler that uses dulwich's logger for logging exceptions. |
Class | WSGIServerLogger | No class docstring; 1/1 methods documented |
Function | main | Entry point for starting an HTTP git server. |
Function | _url_to_path | Undocumented |
Class | _LengthLimitedFile | Wrapper class to limit the length of reads from a file-like object. |
Parameters | mat | A regex match object. |
Returns | The URL prefix, defined as the text before the match in the original string. Normalized to start with one leading slash and end with zero. |
Parameters | req | The HTTPGitRequest object to send output to. |
f | An open file-like object to send; will be closed. | |
content_type | The MIME type for the file. | |
Returns | Iterator over the contents of the file, as chunks. |