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 http://nettephp.com
- 12: *
- 18: */
- 22: /**
- 23: * IHttpRequest provides access scheme for request sent via HTTP.
- 24: *
- 28: */
- 30: {
- 31: /**#@+ HTTP request method */
- 32: const
- 38: /**#@-*/
- 40: /**
- 41: * Returns URL object.
- 43: */
- 46: /********************* query, post, files & cookies ****************d*g**/
- 48: /**
- 49: * Returns variable provided to the script via URL query ($_GET).
- 50: * If no key is passed, returns the entire array.
- 54: */
- 57: /**
- 58: * Returns variable provided to the script via POST method ($_POST).
- 59: * If no key is passed, returns the entire array.
- 63: */
- 66: /**
- 67: * Returns HTTP POST data in raw format (only for "application/x-www-form-urlencoded").
- 69: */
- 72: /**
- 73: * Returns uploaded file.
- 76: */
- 79: /**
- 80: * Returns uploaded files.
- 82: */
- 85: /**
- 86: * Returns variable provided to the script via HTTP cookies.
- 90: */
- 93: /**
- 94: * Returns variables provided to the script via HTTP cookies.
- 96: */
- 99: /********************* method & headers ****************d*g**/
- 101: /**
- 102: * Returns HTTP request method (GET, POST, HEAD, PUT, ...). The method is case-sensitive.
- 104: */
- 107: /**
- 108: * Checks HTTP request method.
- 111: */
- 114: /**
- 115: * Return the value of the HTTP header. Pass the header name as the
- 116: * plain, HTTP-specified header name (e.g. 'Accept-Encoding').
- 120: */
- 123: /**
- 124: * Returns all HTTP headers.
- 126: */
- 129: /**
- 130: * Is the request is sent via secure channel (https).
- 132: */
- 135: /**
- 136: * Is AJAX request?
- 138: */
- 141: /**
- 142: * Returns the IP address of the remote client.
- 144: */
- 147: /**
- 148: * Returns the host of the remote client.
- 150: */
- 153: }