Std.Http.isCacheable
1 declaration
fn
isCacheable: &Std.Http.Method -> BoolThis is a callable function.
What it does
Whether a response to a method may be kept and used again.
A query is cacheable, which is the reason it exists rather than being a
post with a different name. What a cache stores it under has to take in the
request's body, since that is where the terms are: two queries to one
target asking different things are different requests, and a cache keyed on
the target alone would answer the second with the first's result.
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.
