pub fn bytes_response(
status: StatusCode,
content_type: &'static str,
body: Bytes,
) -> ResponseExpand description
Builds a response from a pre-serialized body and an explicit content type.
Useful for serving content that is generated once and cached, such as the OpenAPI document or a static documentation asset.