Table of Contents
Methods
-
__construct()
: mixed
-
addHeader()
: void
-
getHeadersBuilder()
: HttpHeadersBuilder
-
hasContent()
: bool
-
hasHeader()
: bool
-
removeCookie()
: void
-
removeHeader()
: void
-
removeParam()
: void
-
setContent()
: void
-
setCookie()
: void
-
setCookies()
: void
-
setHeader()
: void
-
setHttpVersion()
: void
-
setMethod()
: void
-
setParam()
: void
-
setParams()
: void
-
setPath()
: void
-
toRequest()
: HttpRequest
__construct()
public
__construct() : mixed
public
addHeader(string $name, mixed $value) : void
Parameters
-
$name
: string
-
-
$value
: mixed
-
public
getHeadersBuilder() : HttpHeadersBuilder
hasContent()
public
hasContent() : bool
-
phpstan-impure
-
public
hasHeader(string $name) : bool
Parameters
-
$name
: string
-
removeCookie()
public
removeCookie(string $name) : void
Parameters
-
$name
: string
-
public
removeHeader(string $name) : void
Parameters
-
$name
: string
-
removeParam()
public
removeParam(string $name) : void
Parameters
-
$name
: string
-
setContent()
public
setContent(IHttpContent|Stream|string|null $content) : void
Parameters
-
$content
: IHttpContent|Stream|string|null
-
setCookie()
public
setCookie(string $name, mixed $value) : void
Parameters
-
$name
: string
-
-
$value
: mixed
-
setCookies()
public
setCookies(array<string|int, mixed> $cookies) : void
Parameters
-
$cookies
: array<string|int, mixed>
-
public
setHeader(string $name, mixed $value) : void
Parameters
-
$name
: string
-
-
$value
: mixed
-
setHttpVersion()
public
setHttpVersion(Version $version) : void
Parameters
-
$version
: Version
-
setMethod()
public
setMethod(string $method) : void
Parameters
-
$method
: string
-
setParam()
public
setParam(string $name, mixed $value) : void
Parameters
-
$name
: string
-
-
$value
: mixed
-
setParams()
public
setParams(array<string|int, mixed> $params) : void
Parameters
-
$params
: array<string|int, mixed>
-
setPath()
public
setPath(string $path) : void
Parameters
-
$path
: string
-
toRequest()
public
toRequest() : HttpRequest