You are here

public function WSClientRESTEndpoint::alterRequest in Web service client 7

Alters the given request.

The public alterRequest method supported by Hugo Wetterberg's HttpClient. The request to be altered is passed to drupal_alter() with the service definition as a context.

Parameters

HttpClientRequest $request: The request to be altered.

See also

HttpClient

hook_wsclient_rest_request_alter()

File

wsclient_rest/wsclient_rest.inc, line 241
Web service client REST - include file.

Class

WSClientRESTEndpoint
A remote endpoint type for invoking REST services.

Code

public function alterRequest($request) {
  drupal_alter('wsclient_rest_request', $request, $this->service);
}