Skip to main content

Module network_stream

Module network_stream 

Source
Expand description

Network stream types for connection metadata and upgraded connections.

This module provides:

  • ConnectionMetadata: read-only metadata about an established connection (addresses, TLS info, transport kind).
  • UpgradedStream: an owned post-HTTP IO handle for 101/CONNECT upgrade handoff.
  • NetworkStream: a compatibility object exposed on responses for metadata access and, where safe, low-level IO.

Structs§

ConnectionMetadata
Read-only metadata about an established connection.
ExtraInfo
Read-only metadata accessible through get_extra_info().
TlsInfo
Read-only TLS session metadata captured after handshake.
UpgradedStream
An owned post-HTTP IO handle for upgraded connections (101, CONNECT).

Enums§

NetworkStream
A network stream handle exposed on responses for metadata access.
TransportKind
The kind of transport used for a connection.
UpgradedStreamVariant
Classification of the concrete IO inside an UpgradedStream.