Edit
↰
Home
↑
http
↑
Env
↑
Response
↻
Response::setContentType
↲
★ Changelog
↲
Response::__construct
↲
Response::__invoke
↲
Response::isCachedByEtag
↲
Response::isCachedByLastModified
↲
Response::send
↲
Response::setCacheControl
↲
Response::setContentDisposition
↲
Response::setContentEncoding
↲
Response::setCookie
↲
Response::setEnvRequest
↲
Response::setEtag
↲
Response::setLastModified
↲
Response::setThrottleRate
#
http\Env\Response
http\Env\Response::setContentType
(
string
$content_type
)
Set the MIME content type of the response.
Params:
#
string
$content_type
#
The response's content type.
Returns:
#
http\Env\Response
,
self
.
Throws:
#
http\Exception\InvalidArgumentException
Show Comments from Github Discussions