Tahinli/forge
public0 watching
★ 0
| 1 | //! pkt-line framing for smart HTTP. |
| 2 | |
| 3 | use crateGitService; |
| 4 | |
| 5 | /// The flush packet `0000`. |
| 6 | pub const FLUSH_PKT: & = b"0000"; |
| 7 | |
| 8 | /// Frames `data` as a pkt-line (4 hex length digits, including the 4 length bytes). |
| 9 | /// The payload must be at most 65516 bytes; callers pass short protocol strings. |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | /// The smart-HTTP advertisement preamble: `# service=git-<svc>` as a pkt-line, then a flush. |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 |