Skip to main content

Module protocol

Module protocol 

Source
Expand description

protocol API (re-exported at this path).

Structs§

ClientProtocolVersionInputs
Explicit inputs for selecting the client-side Git wire protocol version.
ProtocolPolicyInputs
Explicit inputs for protocol allow/deny evaluation.

Enums§

ProtocolError
Errors returned when a transport protocol is not allowed.

Functions§

check_protocol_allowed_with
Check whether a given protocol (e.g. file, git, ssh, https) is allowed.
client_git_protocol_header_from_config
Git-Protocol header value implied by protocol.version in config.
client_git_protocol_header_value
Value for the HTTP Git-Protocol request header for a client protocol version.
parse_protocol_version_digit
Parse a protocol version digit (0, 1, or 2).
protocol_from_user
Whether protocol.<name>.allow=user should be considered allowed.
try_effective_client_protocol_version_from_config
Effective client-side protocol version from protocol.version in config only.
try_effective_client_protocol_version_from_inputs
Select the effective client-side protocol version (strict).
try_protocol_version_from_config_value
Parse protocol.version from config (strict: invalid values are rejected).