Edit
↰
Home
↑
http
↑
Client
↑
Request
↻
Request::setContentType
↲
Request::__construct
↲
Request::addQuery
↲
Request::addSslOptions
↲
Request::getContentType
↲
Request::getOptions
↲
Request::getQuery
↲
Request::getSslOptions
↲
Request::setOptions
↲
Request::setQuery
↲
Request::setSslOptions
#
http\Client\Request
http\Client\Request::setContentType
(
string
$content_type
)
Set the MIME content type of the request message.
Params:
#
string
$content_type
#
The MIME type used as "Content-Type".
Returns:
#
http\Client\Request
,
self
.
Throws:
#
http\Exception\InvalidArgumentException
http\Exception\UnexpectedValueException
Show Comments from Github Discussions