Skip to main content

http

Function http 

Source
fn http(
    addr: &str,
    method: &str,
    path: &str,
    body: Option<&str>,
) -> Result<String, String>
Expand description

HTTP/1.1 POST, one connection per request.

ponytail: Connection: close and read_to_end, which is what lets this skip chunked-transfer decoding and keep-alive bookkeeping entirely — the server closes the socket and EOF delimits the body. The ceiling is one TCP handshake per query, invisible next to the query itself; add pooling if the TUI ever polls faster than a human types. No TLS: Mira serves plain HTTP, and a TLS client is where the dependency budget would actually go.