public static function Agent::responseHeader in DRD Agent 4.0.x
Same name and namespace in other branches
- 8.3 src/Controller/Agent.php \Drupal\drd_agent\Controller\Agent::responseHeader()
Get an array of http response headers.
Return value
array The array with headers.
2 calls to Agent::responseHeader()
- Agent::deliver in src/
Controller/ Agent.php - Callback to deliver the result of the action in json format.
- Download::execute in src/
Agent/ Action/ Download.php - Execute an action.
File
- src/
Controller/ Agent.php, line 35
Class
- Agent
- Class Default.
Namespace
Drupal\drd_agent\ControllerCode
public static function responseHeader() : array {
return [
'Content-Type' => 'text/plain; charset=utf-8',
'X-DRD-Agent' => $_SERVER['HTTP_X_DRD_VERSION'],
];
}