Request
class Request
Handles all kind of stuff during one request
Constants
| GET |
|
| POST |
|
| PUT |
|
| DELETE |
|
| HEAD |
|
Properties
| bool | $post | ||
| bool | $get | ||
| bool | $put | ||
| bool | $delete |
Methods
Request constructor.
Returns true of the requesting browser accepts text/html as response mime type
Returns true of the requesting browser accepts image/* as response mime type
Returns true of the requesting browser accepts application/json as response mime type
Checks if the browser accepts the passed mime types for this request. Parameter can contain wildcards using fnmatch syntax $XF->lib->request->accepts_mime("text/*")
No description
Read everything from STDIN e.g. for PUT Requests
No description
No description
No description
Details
at line 43
__construct()
Request constructor.
at line 138
bool
accepts_html()
Returns true of the requesting browser accepts text/html as response mime type
at line 146
bool
accepts_image()
Returns true of the requesting browser accepts image/* as response mime type
at line 154
bool
accepts_json()
Returns true of the requesting browser accepts application/json as response mime type
at line 124
bool
accepts_mime($accepted_mime_type)
Checks if the browser accepts the passed mime types for this request. Parameter can contain wildcards using fnmatch syntax $XF->lib->request->accepts_mime("text/*")
at line 159
string
getMethod()
No description
at line 108
get_input()
Read everything from STDIN e.g. for PUT Requests
at line 67
mixed
get_var($var)
No description
at line 76
bool
is_webservice_call(string $type = 'any')
No description
at line 58
set_var($var, $value)
No description