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 --daemoninstance - 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]/pathURL 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