http¶
http
¶
What both halves of the serve client put on the wire.
A trace and an installed block reach a server the same way — the same headers,
the same timeouts, the same reading of a non-200 — but from two unrelated places:
LocalServeBackend sends
the trace, and
ServeRegistration sends
the block. Keeping the wire details here is what stops the two from drifting; the
error message in particular is one a user reads, and two copies of it would
diverge on the first edit.
headers
¶
The headers every nnsight-serve request carries.
check
¶
Raise the server's own explanation of a non-200, as a ConnectionError.
A transport or service failure, as distinct from an error inside the trace — that one comes back in the body as a deferred error and is re-raised at the client with its real type.