Skip to main content

Module body

Module body 

Source
Expand description

Unified HTTP response body type and constructor helpers.

This module provides a single concrete body type alias and a small set of constructor functions.

Functions§

empty
Creates an empty body (zero bytes).
full
Creates a full body from in-memory bytes.
stream
Creates a streaming body from an async byte stream.

Type Aliases§

Body
Unified response body type used throughout the server.