Function eTag
- e
Tag (entity, options?): Promise<string> Parameters
- entity: string | Uint8Array
The entity to get the ETag for.
Optionaloptions: ETagOptionsVarious additional options.
Returns Promise<string>
The calculated ETag.
- entity: string | Uint8Array
- e
Tag (entity, options?): Promise<string | undefined> Calculate an ETag for file information entity. This returns a
weak tagof the formW\"<ascii chars>", which guarantees the equivalence of the resource, not the byte-for-byte equality.Parameters
- entity: FileInfo
The entity to get the ETag for.
Optionaloptions: ETagOptionsVarious additional options.
Returns Promise<string | undefined>
The calculated ETag.
- entity: FileInfo
Calculate an ETag for string or
Uint8Arrayentities. This returns astrong tagof the form"<ascii chars>", which guarantees the byte-for-byte equality of the resource.You can optionally set true to the
weakoption to get a weak tag.