git_interface.smart_http.quart

Smart HTTP Git helpers for quart

async git_interface.smart_http.quart.get_info_refs_response(repo_path, pack_type)

Make the response for handling advertisements.

A matching route should be: ‘/<repo_name>.git/info/refs’, accessing the ‘service’ argument for pack_type.

param repo_path

Path to the repo

param pack_type

The pack-type

return

The created response

Return type

quart.Response

async git_interface.smart_http.quart.post_pack_response(repo_path, pack_type)

Make the response for handling exchange pack responses, uses ‘BODY_TIMEOUT’ for a timeout of a request.

A matching route should be: ‘/<repo_name>.git/<pack_type>’.

param repo_path

Path to the repo

param pack_type

The pack-type

return

The created response

Parameters
  • repo_path (Path) –

  • pack_type (str) –

Return type

quart.Response