You are here

public function EntityShareServerRestAbstract::setHeader in Entity Share 7

Set a header (but not send it).

Parameters

string $name: Header name.

string $value: Header value.

3 calls to EntityShareServerRestAbstract::setHeader()
EntityShareServerRestAbstract::formatResponse in modules/entity_share_server/includes/entity_share_server.rest.abstract.inc
Format the response in function of the accept header.
EntityShareServerRestAbstract::handle in modules/entity_share_server/includes/entity_share_server.rest.abstract.inc
Handle the server.
EntityShareServerRestAbstract::setError in modules/entity_share_server/includes/entity_share_server.rest.abstract.inc
Set the error of the action.

File

modules/entity_share_server/includes/entity_share_server.rest.abstract.inc, line 375
Class for handling Entity Share Rest Server request.

Class

EntityShareServerRestAbstract
Abstract Class to manage the EntityShare Rest server.

Code

public function setHeader($name, $value) {
  $this->headers[$name] = $value;
}