HTTP server for dulwich that implements the git smart HTTP protocol.
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.
def date_time_string(timestamp=None):
Undocumented
def url_prefix(mat):
Extract the URL prefix from a regex match.
ParametersmatA regex match object.
ReturnsThe URL prefix, defined as the text before the match in the original string. Normalized to start with one leading slash and end with zero.
def get_repo(backend, mat):
Get a Repo instance for the given backend and URL regex match.
def send_file(req, f, content_type):
Send a file-like object to the request output.
ParametersreqThe HTTPGitRequest object to send output to.
fAn open file-like object to send; will be closed.
content_typeThe MIME type for the file.
ReturnsIterator over the contents of the file, as chunks.
def _url_to_path(url):
Undocumented
def get_text_file(req, backend, mat):
Undocumented
def get_loose_object(req, backend, mat):
Undocumented
def get_pack_file(req, backend, mat):
Undocumented
def get_idx_file(req, backend, mat):
Undocumented
def get_info_refs(req, backend, mat):
Undocumented
def get_info_packs(req, backend, mat):
Undocumented
def handle_service_request(req, backend, mat):
Undocumented
def make_wsgi_chain(*args, **kwargs):
Factory function to create an instance of HTTPGitApplication, correctly wrapped with needed middleware.
def main(argv=sys.argv):
Entry point for starting an HTTP git server.
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.