Solar_Http_Request_Adapter_Stream::setContent()
public
Solar_Http_Request_Adapter
Solar_Http_Request_Adapter_Stream::setContent
( string|array $val
)
Sets the body content; technically you can use the public $content property, but this allows method-chaining.
Inherited from Solar_Http_Request_Adapter.
Parameters
(string|array)
$val
: The body content.
Returns
(Solar_Http_Request_Adapter) This adapter object.
Description
Sets the body content; technically you can use the public $content property, but this allows method-chaining.
If you pass an array, the _prepare() method will automatically call http_build_query() on the array and set the content-type for you.