You are here

public function HttpClientFormatter::serialize in Http Client 6.2

Same name and namespace in other branches
  1. 7.2 includes/HttpClient.inc \HttpClientFormatter::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.

3 methods override HttpClientFormatter::serialize()
HttpClientBaseFormatter::serialize in includes/HttpClient.inc
Serializes arbitrary data.
HttpClientCompositeFormatter::serialize in includes/HttpClient.inc
Serializes arbitrary data to the implemented format.
HttpClientXMLFormatter::serialize in includes/HttpClientXMLFormatter.inc
Serializes arbitrary data to the implemented format. Directly stolen from http_server by Hugo Wetterberg

File

includes/HttpClient.inc, line 473

Class

HttpClientFormatter
Interface implemented by formatter implementations for the http client

Code

public function serialize($data);