v1.0.0
English

IncomingRequest.php

system/HTTP/IncomingRequest.php
1 class 35 methods

class IncomingRequest

Class IncomingRequest Represents an incoming, server-side HTTP request. Per the HTTP specification, this interface includes properties for each of the following: - Protocol version - HTTP method - URI - Headers - Message body Additionally, it encapsulates all data as it has arrived to the application from the CGI and/or PHP environment, including: - The values represented in $_SERVER. - Any cookies provided (generally via $_COOKIE) - Query string arguments (generally via $_GET, or as parsed via parse_str()) - Upload files, if any (as represented by $_FILES) - Deserialized body binds (generally from $_POST)
__construct ($config, ?URI $uri = null, $body = 'php://input', ?UserAgent $userAgent = null) public
getPostMaxSize () private
detectLocale ($config) public
detectURI (string $protocol, string $baseURL) protected
detectPath (string $protocol = '') public
parseRequestURI () protected
parseQueryString () protected
negotiate (string $type, array $supported, bool $strictMatch = false) public
is (string $type) public
isCLI () public
isAJAX () public
isSecure () public
setPath (string $path, ?App $config = null) public
getPath () public
setLocale (string $locale) public
setValidLocales (array $locales) public
getLocale () public
getDefaultLocale () public
getVar ($index = null, $filter = null, $flags = null) public
getJSON (bool $assoc = false, int $depth = 512, int $options = 0) public
getJsonVar ($index = null, bool $assoc = false, ?int $filter = null, $flags = null) public
void (&$val) public
getRawInput () public
getRawInputVar ($index = null, ?int $filter = null, $flags = null) public
void (&$val) public
getGet ($index = null, $filter = null, $flags = null) public
getPost ($index = null, $filter = null, $flags = null) public
getPostGet ($index = null, $filter = null, $flags = null) public
getGetPost ($index = null, $filter = null, $flags = null) public
getCookie ($index = null, $filter = null, $flags = null) public
getUserAgent () public
getOldInput (string $key) public
getFiles () public
getFileMultiple (string $fileID) public
getFile (string $fileID) public
phpDG v1.0.0 IncomingRequest.php 662 files 498 classes 763 fn
Generated