You are here

public function RestfulBase::setHttpHeaders in RESTful 7

Set the HTTP headers.

Parameters

string $key: The HTTP header key.

string $value: The HTTP header value.

Overrides RestfulInterface::setHttpHeaders

7 calls to RestfulBase::setHttpHeaders()
RestfulBase::addHttpHeaders in plugins/restful/RestfulBase.php
Add the a value to a multi-value HTTP header.
RestfulBase::options in plugins/restful/RestfulBase.php
Call resource using the OPTIONS http method.
RestfulBase::process in plugins/restful/RestfulBase.php
Entry point to process a request.
RestfulDataProviderDbQuery::remove in plugins/restful/RestfulDataProviderDbQuery.php
Remove the item from the data source.
RestfulDataProviderVariable::remove in plugins/restful/RestfulDataProviderVariable.php
Remove the item from the data source.

... See full list

File

plugins/restful/RestfulBase.php, line 344
Contains RestfulBase.

Class

RestfulBase
Class \RestfulBase

Code

public function setHttpHeaders($key, $value) {
  $this->httpHeaders[$key] = $value;
}