Table of Contents
Methods
-
__construct()
: mixed
-
accelRedirect()
: void
-
addCookie()
: void
-
addHeader()
: void
-
addVary()
: void
-
clearSiteData()
: void
-
clearStatusText()
: void
-
getHeadersBuilder()
: HttpHeadersBuilder
-
getStatusCode()
: int
-
getStatusText()
: string
-
hasContent()
: bool
-
hasContentType()
: bool
-
hasHeader()
: bool
-
hasStatusCode()
: bool
-
redirect()
: void
-
removeCookie()
: void
-
removeHeader()
: void
-
sendFile()
: void
-
setCacheControl()
: void
-
setContent()
: void
-
setContentType()
: void
-
setEntityTag()
: void
-
setFileName()
: void
-
setHeader()
: void
-
setHttpVersion()
: void
-
setPoweredBy()
: void
-
setServerTiming()
: void
-
setStatusCode()
: void
-
setStatusText()
: void
-
setTypeCSS()
: void
-
setTypeHTML()
: void
-
setTypeJS()
: void
-
setTypeJson()
: void
-
setTypePlain()
: void
-
setTypeStream()
: void
-
setTypeXML()
: void
-
toResponse()
: HttpResponse
__construct()
public
__construct() : mixed
accelRedirect()
public
accelRedirect(string $uri) : void
Parameters
-
$uri
: string
-
addCookie()
public
addCookie(string $name, mixed $value[, DateTimeInterface|int|null $expires = null ][, string $path = '' ][, string $domain = '' ][, bool $secure = false ][, bool $httpOnly = false ][, bool $sameSiteStrict = false ]) : void
Parameters
-
$name
: string
-
-
$value
: mixed
-
-
$expires
: DateTimeInterface|int|null
= null
-
-
$path
: string
= ''
-
-
$domain
: string
= ''
-
-
$secure
: bool
= false
-
-
$httpOnly
: bool
= false
-
-
$sameSiteStrict
: bool
= false
-
public
addHeader(string $name, mixed $value) : void
Parameters
-
$name
: string
-
-
$value
: mixed
-
addVary()
public
addVary(string|array<string|int, mixed> $headers) : void
Parameters
-
$headers
: string|array<string|int, mixed>
-
clearSiteData()
public
clearSiteData(string ...$directives) : void
Parameters
-
$directives
: string
-
clearStatusText()
public
clearStatusText() : void
public
getHeadersBuilder() : HttpHeadersBuilder
getStatusCode()
public
getStatusCode() : int
getStatusText()
public
getStatusText() : string
hasContent()
public
hasContent() : bool
-
phpstan-impure
-
hasContentType()
public
hasContentType() : bool
public
hasHeader(string $name) : bool
Parameters
-
$name
: string
-
hasStatusCode()
public
hasStatusCode() : bool
redirect()
public
redirect(string $to[, bool $permanent = false ]) : void
Parameters
-
$to
: string
-
-
$permanent
: bool
= false
-
removeCookie()
public
removeCookie(string $name[, string $path = '' ][, string $domain = '' ][, bool $secure = false ][, bool $httpOnly = false ][, bool $sameSiteStrict = false ]) : void
Parameters
-
$name
: string
-
-
$path
: string
= ''
-
-
$domain
: string
= ''
-
-
$secure
: bool
= false
-
-
$httpOnly
: bool
= false
-
-
$sameSiteStrict
: bool
= false
-
public
removeHeader(string $name) : void
Parameters
-
$name
: string
-
sendFile()
public
sendFile(string $absolutePath) : void
Parameters
-
$absolutePath
: string
-
setCacheControl()
public
setCacheControl(string ...$directives) : void
Parameters
-
$directives
: string
-
setContent()
public
setContent(IHttpContent|Stream|string|null $content) : void
Parameters
-
$content
: IHttpContent|Stream|string|null
-
setContentType()
public
setContentType(MediaType|string $mediaType) : void
Parameters
-
$mediaType
: MediaType|string
-
setEntityTag()
public
setEntityTag(string $eTag[, bool $weak = false ]) : void
Parameters
-
$eTag
: string
-
-
$weak
: bool
= false
-
setFileName()
public
setFileName(string $fileName[, bool $attachment = false ]) : void
Parameters
-
$fileName
: string
-
-
$attachment
: bool
= false
-
public
setHeader(string $name, mixed $value) : void
Parameters
-
$name
: string
-
-
$value
: mixed
-
setHttpVersion()
public
setHttpVersion(Version $version) : void
Parameters
-
$version
: Version
-
setPoweredBy()
public
setPoweredBy(string $poweredBy) : void
Parameters
-
$poweredBy
: string
-
setServerTiming()
public
setServerTiming(Timings $timings) : void
Parameters
-
$timings
: Timings
-
setStatusCode()
public
setStatusCode(int $statusCode) : void
Parameters
-
$statusCode
: int
-
setStatusText()
public
setStatusText(string $statusText) : void
Parameters
-
$statusText
: string
-
setTypeCSS()
public
setTypeCSS([string $charset = 'utf-8' ]) : void
Parameters
-
$charset
: string
= 'utf-8'
-
setTypeHTML()
public
setTypeHTML([string $charset = 'utf-8' ]) : void
Parameters
-
$charset
: string
= 'utf-8'
-
setTypeJS()
public
setTypeJS([string $charset = 'utf-8' ]) : void
Parameters
-
$charset
: string
= 'utf-8'
-
setTypeJson()
public
setTypeJson([string $charset = 'utf-8' ]) : void
Parameters
-
$charset
: string
= 'utf-8'
-
setTypePlain()
public
setTypePlain([string $charset = 'us-ascii' ]) : void
Parameters
-
$charset
: string
= 'us-ascii'
-
setTypeStream()
public
setTypeStream() : void
setTypeXML()
public
setTypeXML([string $charset = 'utf-8' ]) : void
Parameters
-
$charset
: string
= 'utf-8'
-
toResponse()
public
toResponse() : HttpResponse