Source for file IHttpResponse.php
Documentation is available at IHttpResponse.php
6: * @copyright Copyright (c) 2004, 2010 David Grudl
7: * @license http://nettephp.com/license Nette license
8: * @link http://nettephp.com
16: * IHttpResponse interface.
18: * @copyright Copyright (c) 2004, 2010 David Grudl
23: /** @var int cookie expiration: forever (23.1.2037) */
24: const PERMANENT =
2116333333;
26: /** @var int cookie expiration: until the browser is closed */
29: /**#@+ HTTP 1.1 response code */
32: S204_NO_CONTENT =
204,
33: S300_MULTIPLE_CHOICES =
300,
34: S301_MOVED_PERMANENTLY =
301,
36: S303_SEE_OTHER =
303,
38: S304_NOT_MODIFIED =
304,
39: S307_TEMPORARY_REDIRECT=
307,
40: S400_BAD_REQUEST =
400,
41: S401_UNAUTHORIZED =
401,
42: S403_FORBIDDEN =
403,
43: S404_NOT_FOUND =
404,
44: S405_METHOD_NOT_ALLOWED =
405,
46: S500_INTERNAL_SERVER_ERROR =
500,
47: S501_NOT_IMPLEMENTED =
501,
48: S503_SERVICE_UNAVAILABLE =
503;
52: * Sets HTTP response code.
59: * Returns HTTP response code.
65: * Sends a HTTP header and replaces a previous one.
66: * @param string header name
67: * @param string header value
74: * @param string header name
75: * @param string header value
81: * Sends a Content-type HTTP header.
82: * @param string mime-type
83: * @param string charset
89: * Redirects to a new URL.
91: * @param int HTTP code
97: * Sets the number of seconds before a page cached on a browser expires.
98: * @param mixed timestamp or number of seconds
104: * Checks if headers have been sent.
110: * Returns a list of headers to sent.
117: * @param string name of the cookie
118: * @param string value
119: * @param mixed expiration as unix timestamp or number of seconds; Value 0 means "until the browser is closed"
125: function setCookie($name, $value, $expire, $path =
NULL, $domain =
NULL, $secure =
NULL);
129: * @param string name of the cookie.
135: function deleteCookie($name, $path =
NULL, $domain =
NULL, $secure =
NULL);