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 https://nette.org
- 12: *
- 19: */
- 23: /**
- 24: * IHttpResponse interface.
- 25: *
- 29: */
- 31: {
- 38: /**#@+ HTTP 1.1 response code */
- 39: const
- 57: /**#@-*/
- 59: /**
- 60: * Sets HTTP response code.
- 63: */
- 66: /**
- 67: * Returns HTTP response code.
- 69: */
- 72: /**
- 73: * Sends a HTTP header and replaces a previous one.
- 77: */
- 80: /**
- 81: * Adds HTTP header.
- 85: */
- 88: /**
- 89: * Sends a Content-type HTTP header.
- 93: */
- 96: /**
- 97: * Redirects to a new URL.
- 101: */
- 104: /**
- 105: * Sets the number of seconds before a page cached on a browser expires.
- 108: */
- 111: /**
- 112: * Checks if headers have been sent.
- 114: */
- 117: /**
- 118: * Returns a list of headers to sent.
- 120: */
- 123: /**
- 124: * Sends a cookie.
- 127: * @param int expiration as unix timestamp or number of seconds; Value 0 means "until the browser is closed"
- 132: */
- 135: /**
- 136: * Deletes a cookie.
- 142: */
- 145: }