Generates an ETag for the given metadata. Returns undefined if no ETag could be generated.
Metadata of the representation to generate an ETag for.
Validates whether the given metadata corresponds to the given ETag.
Metadata of the resource.
ETag to compare to.
True if the comparison needs to be on representation level. False if it is on resource level and the content-type doesn't matter.
Validates whether 2 ETags correspond to the same state of a resource, independent of the representation the ETags correspond to.
First ETag to compare.
Second ETag to compare.
Responsible for everything related to ETag generation and comparison. ETags are constructed in such a way they can both be used for the standard ETag usage of comparing representations, but also to see if two ETags of different representations correspond to the same resource state.