Expand description
Turn a matched Respond declaration into an HTTP response.
§Why this is a server-side free function and not a Respond method
Pre-5.0, Respond::response(...) lived on the type itself. That
method built a hyper::Response<BoxBody> and touched the server’s
file-response / text-response / status-response helpers. To keep
apimock-routing free of hyper-body construction (so a future GUI
can depend on it cheaply), that work moved here.
Functions§
- respond_
response - Produce the HTTP response for a matched
Responddeclaration.