Skip to main content

Module lit_protocol

Module lit_protocol 

Source
Expand description

Native Lit protocol transport (lit://) for remote Lit repositories

The lit:// protocol is Lit’s native transport using TCP connections with newline-delimited JSON framing. The server side is provided by lit serve --daemon, which accepts TCP connections on the configured port (default 9418) and processes the same JSON API as the stdio and HTTP modes.

Structs§

LitConnection
A TCP connection to a remote lit serve --daemon instance
LitUrl
Parsed lit:// URL components

Constants§

DEFAULT_PORT
Default port for the lit:// protocol

Functions§

download_objects_lit
Download objects from a remote server via lit:// connection
is_lit_url
Check whether a URL uses the lit:// transport
list_refs_lit
List refs from a remote server via lit:// connection
negotiate_lit
Negotiate which objects are needed via lit:// connection
parse_lit_url
Parse a lit://host[:port]/path URL into its components
read_head_lit
Read HEAD from a remote server via lit:// connection
read_ref_lit
Read a branch ref from a remote server via lit:// connection
update_ref_lit
Update a branch ref on a remote server via lit:// connection
upload_objects_lit
Upload objects from a local store to a remote server via lit:// connection