Table of Contents
Methods
-
__construct()
: mixed
-
fromRequest()
: HttpRequest
-
getContent()
: IHttpContent|null
-
getCookie()
: mixed
-
getCookies()
: array<string|int, mixed>
-
getHeader()
: HttpHeader
-
getHeaderFirstLine()
: string
-
getHeaderLine()
: string
-
getHeaderLines()
: array<string|int, mixed>
-
getHeaders()
: array<string|int, mixed>
-
getHttpVersion()
: Version
-
getMethod()
: string
-
getParam()
: mixed
-
getParams()
: array<string|int, mixed>
-
getParamString()
: string
-
getPath()
: string
-
hasContent()
: bool
-
hasCookie()
: bool
-
hasHeader()
: bool
-
hasParam()
: bool
-
isBencodedContent()
: bool
-
isFormContent()
: bool
-
isJsonContent()
: bool
-
isStreamContent()
: bool
-
isStringContent()
: bool
__construct()
public
__construct(Version $version, string $method, string $path, array<string|int, mixed> $params, array<string|int, mixed> $cookies, HttpHeaders $headers, IHttpContent|null $content) : mixed
Parameters
-
$version
: Version
-
-
$method
: string
-
-
$path
: string
-
-
$params
: array<string|int, mixed>
-
-
$cookies
: array<string|int, mixed>
-
-
$headers
: HttpHeaders
-
-
$content
: IHttpContent|null
-
fromRequest()
public
static fromRequest() : HttpRequest
getContent()
public
getContent() : IHttpContent|null
getCookie()
public
getCookie(string $name[, int $filter = FILTER_DEFAULT ][, array<string|int, mixed>|int $options = 0 ]) : mixed
Parameters
-
$name
: string
-
-
$filter
: int
= FILTER_DEFAULT
-
-
$options
: array<string|int, mixed>|int
= 0
-
getCookies()
public
getCookies() : array<string|int, mixed>
Return values
array<string|int, mixed>
public
getHeader(string $name) : HttpHeader
Parameters
-
$name
: string
-
public
getHeaderFirstLine(string $name) : string
Parameters
-
$name
: string
-
public
getHeaderLine(string $name) : string
Parameters
-
$name
: string
-
public
getHeaderLines(string $name) : array<string|int, mixed>
Parameters
-
$name
: string
-
Return values
array<string|int, mixed>
public
getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>
getHttpVersion()
public
getHttpVersion() : Version
getMethod()
public
getMethod() : string
getParam()
public
getParam(string $name[, int $filter = FILTER_DEFAULT ][, array<string|int, mixed>|int $options = 0 ]) : mixed
Parameters
-
$name
: string
-
-
$filter
: int
= FILTER_DEFAULT
-
-
$options
: array<string|int, mixed>|int
= 0
-
getParams()
public
getParams() : array<string|int, mixed>
Return values
array<string|int, mixed>
getParamString()
public
getParamString([bool $spacesAsPlus = false ]) : string
Parameters
-
$spacesAsPlus
: bool
= false
-
getPath()
public
getPath() : string
hasContent()
public
hasContent() : bool
hasCookie()
public
hasCookie(string $name) : bool
Parameters
-
$name
: string
-
public
hasHeader(string $name) : bool
Parameters
-
$name
: string
-
hasParam()
public
hasParam(string $name) : bool
Parameters
-
$name
: string
-
isBencodedContent()
public
isBencodedContent() : bool
isFormContent()
public
isFormContent() : bool
isJsonContent()
public
isJsonContent() : bool
isStreamContent()
public
isStreamContent() : bool
isStringContent()
public
isStringContent() : bool