Struct ETag
Represents an Entity-Tag value for use inside HTTP Cache headers.
Fields
Name | Type | Description |
tag
|
string | |
weak
|
bool | |
Properties
Name | Type | Description |
toString [get]
|
string | |
Methods
Name | Description |
fromBytesBase64URLNoPadding
(bytes, weak)
|
Encodes the bytes with URL Base64 to a human readable string and returns an ETag struct wrapping it.
|
md5
(weak, data)
|
Hashes the input bytes with md5 and returns an URL Base64 encoded representation as ETag.
|
parse
(s)
|
|
Standards
https://tools.ietf.org/html/rfc7232#section-2.3