You are here

public function HttpClientCompositeFormatter::serialize in Http Client 6.2

Same name and namespace in other branches
  1. 7.2 includes/HttpClient.inc \HttpClientCompositeFormatter::serialize()

Serializes arbitrary data to the implemented format.

Parameters

mixed $data: The data that should be serialized.

Return value

string The serialized data as a string.

Overrides HttpClientFormatter::serialize

File

includes/HttpClient.inc, line 430

Class

HttpClientCompositeFormatter
A utility formatter to use for creating assymetrical http client formatters.

Code

public function serialize($data) {
  return $this->send
    ->serialize($data);
}