big update's coming
[mdref/mdref-http] / http / Env / Response / setEtag.md
1 # http\Env\Response http\Env\Response::setEtag(string $etag)
2
3 Set a custom ETag.
4
5 > **Note:** This will be used for caching and pre-condition checks.
6
7 ## Params:
8
9 * string $etag
10 A ETag.
11
12 ## Returns:
13
14 * http\Env\Response, self.
15
16 ## Throws:
17
18 * http\Exception\InvalidArgumentException