(options)
| 200 | } |
| 201 | |
| 202 | entity(options) { |
| 203 | |
| 204 | Hoek.assert(options, 'Entity method missing required options'); |
| 205 | Hoek.assert(options.etag || options.modified, 'Entity methods missing required options key'); |
| 206 | |
| 207 | this.request._entity = options; |
| 208 | |
| 209 | const entity = this.request._core.Response.entity(options.etag, options); |
| 210 | if (this.request._core.Response.unmodified(this.request, entity)) { |
| 211 | return this.response().code(304).takeover(); |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | state(name, value, options) { |
| 216 |
nothing calls this directly
no test coverage detected