Http module

Link

structextensionexperimentalSource

The connection as the server loop and the client exchange see it: the reader and writer halves and the address of the peer. Both halves share one socket or pipe end, so close on the link (or on either half) ends the connection once. A transport of your own only has to produce a Link.

Fields

reader: Io.Reader
writer: Io.Writer
peer: Io.Address
The other side's address. A pipe has none: it reports the loopback address with port 0.
h2: bool
True when TLS agreed on HTTP/2 (ALPN h2) for this connection.

See also