-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRequestInterface.php
40 lines (39 loc) · 1.5 KB
/
RequestInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Request Interface
*
* @package Http
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2014-2015 Amy Stephen. All rights reserved.
*/
namespace CommonApi\Http;
/**
* Request Interface
*
* @package Http
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2014-2015 Amy Stephen. All rights reserved.
* @since 1.0
*/
interface RequestInterface
{
/**
* Get the request object, as defined by URI Syntax RFC 3986
*
* scheme://user:password@example.com:8042/over/there/index.php?type=animal&name=narwhal#nose
* \___________/ \_________/ \__/ \__________________/\______________________/ \__/
* | | | | | | | |
* userinfo host port path | | query fragment
* \____________________________/ | | \__/ \____/ \__/ \____/
* | | | | | | |
* authority | | key value key value
*
* - Returns method, content_type, base_url, url, scheme, secure (boolean), user, password,
* userinfo, host, port, authority, path, query, parameters (named pair query array)
*
* @link http://tools.ietf.org/html/rfc3986
* @return object
* @since 1.0.0
*/
public function get();
}