Skip to main content

Module net

Module net 

Source
Expand description

Async networking utilities built on Tokio.

Provides TCP connection and listener helpers, plus a minimal HTTP GET/POST client for common use cases.

Structs§

HttpResponse
A minimal async HTTP response.

Functions§

http_get
Perform a minimal HTTP GET request.
read_stream
Read all available data from a TCP stream into a Vec<u8>.
tcp_bind
Bind a TCP listener on the given address.
tcp_connect
Connect to a TCP server.
write_stream
Write data to a TCP stream.