empty_response

Function empty_response 

Source
pub fn empty_response() -> GenericBody
Expand description

Creates an empty HTTP response body.

This function constructs a GenericBody containing an empty Bytes buffer, The body is wrapped in a BoxBody to ensure type erasure and compatibility with the HTTP framework.