quote_etag
If the provided string is already a quoted ETag, return it. Otherwise, wrap the string in quotes, making it a strong ETag.
def quote_etag(
etag_str: string
) - > string
If the provided string is already a quoted ETag, return it. Otherwise, wrap the string in quotes, making it a strong ETag.
Parameters
| Name | Type | Description |
|---|---|---|
| etag_str | string | The ETag value to be validated or quoted, typically representing a resource version identifier. |
Returns
| Type | Description |
|---|---|
string | The original string if already quoted, or the string wrapped in double quotes to form a valid strong ETag. |