Expand description
Helper functions shared by the Git smart protocol handlers, including pkt-line parsing, pkt-line encoding, subsequence scans, and response builders that honor HTTP/SSH quirks.
Functionsยง
- add_
pkt_ line_ string - Add a packet line string to the buffer with proper length prefix
- build_
smart_ reply - Build a smart reply packet line stream
- read_
pkt_ line - Read a packet line from the given bytes buffer
- read_
until_ white_ space - Read until whitespace and return the extracted string
- search_
subsequence - Search for a subsequence in a byte slice