You are here

public function ServicesClientConnectionRestServerParser::prepareRequest in Services Client 7.2

Same name and namespace in other branches
  1. 7 services_client_connection/plugins/ServicesClientConnectionRestServer.inc \ServicesClientConnectionRestServerParser::prepareRequest()

Prepare request

Parameters

ServicesClientConnectionHttpRequest $request:

File

services_client_connection/plugins/ServicesClientConnectionRestServer.inc, line 345

Class

ServicesClientConnectionRestServerParser

Code

public function prepareRequest(&$request) {
  if ($accept = $this
    ->getParserInfo('accept')) {
    $request->http_headers['Accept'] = $accept;
  }
}