TwistPHP Documentation

setContentType

File path: dist/twist/Core/Utilities/Curl.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

setContentTypeSet the content type of the request, this will be merged with the headers array if required

Parameters

Name Type Description
$strContentTypestringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strContentType 'foo';

//Call the function setContentType with the example vars
Twist::Curl() -> setContentType($strContentType);