Previous Page
setContent()

Solar_Http_Request_Adapter
setContentType()

Next Page
setCookie()

setContentType()

public Solar_Http_Adapter setContentType ( string $val )

Sets the content-type for the body content.

Parameters

  • (string) $val: The content-type, e.g. "text/plain".

Returns

  • (Solar_Http_Adapter) This adapter object.

Description

Sets the content-type for the body content.