Edit
↰
Home
↑
http
↑
Env
↑
Response
↻
Response::setEtag
↲
★ Changelog
↲
Response::__construct
↲
Response::__invoke
↲
Response::isCachedByEtag
↲
Response::isCachedByLastModified
↲
Response::send
↲
Response::setCacheControl
↲
Response::setContentDisposition
↲
Response::setContentEncoding
↲
Response::setContentType
↲
Response::setCookie
↲
Response::setEnvRequest
↲
Response::setLastModified
↲
Response::setThrottleRate
#
http\Env\Response
http\Env\Response::setEtag
(
string
$etag
)
Set a custom ETag.
NOTE:
This will be used for caching and pre-condition checks.
Params:
#
string
$etag
#
A ETag.
Returns:
#
http\Env\Response
,
self
.
Throws:
#
http\Exception\InvalidArgumentException
Show Comments from Github Discussions