Source for file IHttpResponse.php
Documentation is available at IHttpResponse.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see http://nettephp.com
- 12: *
- 18: */
- 22: /**
- 23: * IHttpResponse interface.
- 24: *
- 28: */
- 30: {
- 37: /**#@+ HTTP 1.1 response code */
- 38: const
- 56: /**#@-*/
- 58: /**
- 59: * Sets HTTP response code.
- 62: */
- 65: /**
- 66: * Returns HTTP response code.
- 68: */
- 71: /**
- 72: * Sends a HTTP header and replaces a previous one.
- 76: */
- 79: /**
- 80: * Adds HTTP header.
- 84: */
- 87: /**
- 88: * Sends a Content-type HTTP header.
- 92: */
- 95: /**
- 96: * Redirects to a new URL.
- 100: */
- 103: /**
- 104: * Sets the number of seconds before a page cached on a browser expires.
- 107: */
- 110: /**
- 111: * Checks if headers have been sent.
- 113: */
- 116: /**
- 117: * Returns a list of headers to sent.
- 119: */
- 122: /**
- 123: * Sends a cookie.
- 126: * @param mixed expiration as unix timestamp or number of seconds; Value 0 means "until the browser is closed"
- 131: */
- 134: /**
- 135: * Deletes a cookie.
- 141: */
- 144: }