mdref.json config
[mdref/mdref-http] / http / Env / Response.md
1 # class http\Env\Response extends http\Message
2
3 The http\Env\Response class' instances represent the server's current HTTP response.
4
5 See http\Message for inherited members.
6
7 ## Constants:
8
9 * CONTENT_ENCODING_NONE
10 Do not use content encoding.
11 * CONTENT_ENCODING_GZIP
12 Support "Accept-Encoding" requests with gzip and deflate encoding.
13 * CACHE_NO
14 No caching info available.
15 * CACHE_HIT
16 The cache was hit.
17 * CACHE_MISS
18 The cache was missed.
19
20 ## Properties:
21
22 * protected http\Env\Request $request = NULL
23 A request instance which overrides the environments default request.
24 * protected string $contentType = NULL
25 The response's MIME content type.
26 * protected string $contentDisposition = NULL
27 The response's MIME content disposition.
28 * protected int $contentEncoding = NULL
29 See http\Env\Response::CONTENT_ENCODING_* constants.
30 * protected string $cacheControl = NULL
31 How the client should treat this response in regards to caching.
32 * protected string $etag = NULL
33 A custom ETag.
34 * protected int $lastModified = NULL
35 A "Last-Modified" time stamp.
36 * protected int $throttleDelay = NULL
37 Any throttling delay.
38 * protected int $throttleChunk = NULL
39 The chunk to send every $throttleDelay seconds.
40 * protected array $cookies = NULL
41 The response's cookies.