OneAndDone.Request (One and Done v0.1.6)
View SourceCapture 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.
Summary
Functions
Hashes the request struct.
Types
Functions
@spec hash(t()) :: non_neg_integer()
Hashes the request struct.