Skip to main content

request_at

Function request_at 

Source
pub fn request_at(
    socket: &Path,
    request: &Request,
) -> Result<Response, ServerError>
Expand description

One round trip against an explicit socket: connect, send one request line, read one response line. Synchronous std transport — the shim side has no runtime, and one blocking round trip is exactly its job.

§Errors

NotRunning when the socket is absent or refuses connection; Io/Protocol for transport and encoding failures.