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)
getPostMaxSize
()
detectLocale
($config)
detectURI
(string $protocol, string $baseURL)
detectPath
(string $protocol = '')
parseRequestURI
()
parseQueryString
()
negotiate
(string $type, array $supported, bool $strictMatch = false)
is
(string $type)
isCLI
()
isAJAX
()
isSecure
()
setPath
(string $path, ?App $config = null)
getPath
()
setLocale
(string $locale)
setValidLocales
(array $locales)
getLocale
()
getDefaultLocale
()
getVar
($index = null, $filter = null, $flags = null)
getJSON
(bool $assoc = false, int $depth = 512, int $options = 0)
getJsonVar
($index = null, bool $assoc = false, ?int $filter = null, $flags = null)
void
(&$val)
getRawInput
()
getRawInputVar
($index = null, ?int $filter = null, $flags = null)
void
(&$val)
getGet
($index = null, $filter = null, $flags = null)
getPost
($index = null, $filter = null, $flags = null)
getPostGet
($index = null, $filter = null, $flags = null)
getGetPost
($index = null, $filter = null, $flags = null)
getCookie
($index = null, $filter = null, $flags = null)
getUserAgent
()
getOldInput
(string $key)
getFiles
()
getFileMultiple
(string $fileID)
getFile
(string $fileID)