App::setContentType
Usage
void App::setContentType(string $type)Description
Change the content type of the request.Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| $type | Yes | string | The new content type to set the request to. |
Examples
Set content type
$app->setContentType('application/json');