View Source OneAndDone.Request (One and Done v0.1.5)
Capture the request information that we want to cache.
Headers are not included in the cache key because they can change from request to request and should not influence the substance of the request being made to a controller.
Generally we do not cache this Request struct, but we do cache the hash of the struct so that we can compare subsequent requests to the original request. If the hashes don't match, we return an error. If the hashes do match, then we can continue processing.
Link to this section Summary
Functions
Hashes the request struct.
Link to this section Types
Link to this section Functions
@spec hash(t()) :: non_neg_integer()
Hashes the request struct.