|
Previous Page |
Solar_Http_Request_Adapter_Stream |
Next Page |
setContent()
public
Solar_Http_Request_Adapter
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.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- __toString()
- _exception()
- _fetch()
- _parseCookie()
- _prepareContext()
- _prepareRequest()
- apiVersion()
- dump()
- fetch()
- fetchAll()
- fetchRaw()
- getContent()
- getOptions()
- locale()
- setBasicAuth()
- setCharset()
- setContent()
- setContentType()
- setCookie()
- setCookies()
- setHeader()
- setMaxRedirects()
- setMethod()
- setProxy()
- setReferer()
- setSslCafile()
- setSslCapath()
- setSslLocalCert()
- setSslPassphrase()
- setSslVerifyPeer()
- setTimeout()
- setUri()
- setUserAgent()
- setVersion()