Class rex_response
HTTP1.1 Client Cache Features.
Methods summary
public static
|
||
public static
string
|
||
public static
|
||
public static
|
||
public static
|
||
public static
|
||
public static
|
#
sendResource( string $content, null|string $contentType = null, null|integer $lastModified = null, null|string $etag = null, null|string $contentDisposition = null, null|string $filename = null )
Sends a resource to the client. |
|
public static
|
||
public static
|
#
sendContent( string $content, string $contentType = null, integer $lastModified = null, string $etag = null )
Sends content to the client. |
|
public static
|
||
public static
|
||
public static
|
#
sendCacheControl( mixed $cacheControl = 'must-revalidate, proxy-revalidate, private, no-cache, max-age=0' )
Sends the cache control header. |
|
public static
|
#
sendLastModified( integer $lastModified = null )
Checks if content has changed by the last modified timestamp. |
|
public static
|
||
protected static
string
|
||
public static
|
||
public static
|
Constants summary
string |
HTTP_OK
|
# '200 OK' |
string |
HTTP_PARTIAL_CONTENT
|
# '206 Partial Content' |
string |
HTTP_MOVED_PERMANENTLY
|
# '301 Moved Permanently' |
string |
HTTP_NOT_MODIFIED
|
# '304 Not Modified' |
string |
HTTP_MOVED_TEMPORARILY
|
# '307 Temporary Redirect' |
string |
HTTP_NOT_FOUND
|
# '404 Not Found' |
string |
HTTP_FORBIDDEN
|
# '403 Forbidden' |
string |
HTTP_UNAUTHORIZED
|
# '401 Unauthorized' |
string |
HTTP_RANGE_NOT_SATISFIABLE
|
# '416 Range Not Satisfiable' |
string |
HTTP_INTERNAL_ERROR
|
# '500 Internal Server Error' |
string |
HTTP_SERVICE_UNAVAILABLE
|
# '503 Service Unavailable' |