pub fn construct_req<B>(
ctx: &Context<'_>,
md: &Metadata,
path: &impl Serialize,
query: &impl Serialize,
body: B,
) -> Result<Request<B>, IntoHttpError>
Expand description
Helper function to construct an HTTP request using the given context, metadata, and path/query/body values.
ยงErrors
Returns an IntoHttpError
if the http request cannot be constructed.