Source for file IHttpRequest.php
Documentation is available at IHttpRequest.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: * IHttpRequest provides access scheme for request sent via HTTP.
- 25: *
- 29: */
- 31: {
- 32: /**#@+ HTTP request method */
- 33: const
- 39: /**#@-*/
- 41: /**
- 42: * Returns URL object.
- 44: */
- 47: /********************* query, post, files & cookies ****************d*g**/
- 49: /**
- 50: * Returns variable provided to the script via URL query ($_GET).
- 51: * If no key is passed, returns the entire array.
- 55: */
- 58: /**
- 59: * Returns variable provided to the script via POST method ($_POST).
- 60: * If no key is passed, returns the entire array.
- 64: */
- 67: /**
- 68: * Returns HTTP POST data in raw format (only for "application/x-www-form-urlencoded").
- 70: */
- 73: /**
- 74: * Returns uploaded file.
- 77: */
- 80: /**
- 81: * Returns uploaded files.
- 83: */
- 86: /**
- 87: * Returns variable provided to the script via HTTP cookies.
- 91: */
- 94: /**
- 95: * Returns variables provided to the script via HTTP cookies.
- 97: */
- 100: /********************* method & headers ****************d*g**/
- 102: /**
- 103: * Returns HTTP request method (GET, POST, HEAD, PUT, ...). The method is case-sensitive.
- 105: */
- 108: /**
- 109: * Checks HTTP request method.
- 112: */
- 115: /**
- 116: * Return the value of the HTTP header. Pass the header name as the
- 117: * plain, HTTP-specified header name (e.g. 'Accept-Encoding').
- 121: */
- 124: /**
- 125: * Returns all HTTP headers.
- 127: */
- 130: /**
- 131: * Is the request is sent via secure channel (https).
- 133: */
- 136: /**
- 137: * Is AJAX request?
- 139: */
- 142: /**
- 143: * Returns the IP address of the remote client.
- 145: */
- 148: /**
- 149: * Returns the host of the remote client.
- 151: */
- 154: }