Std.Http.expectsBody
1 declaration
fn
expectsBody: &Std.Http.Method -> BoolThis is a callable function.
What it does
Whether a method carries a body describing what to do.
A query must carry one and must say what it is: a server is required to
refuse a query whose content type is missing or does not match its body,
because the body is the request and a body it cannot read is a request it
cannot answer.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
