You are here

protected static property ServicesClientConnectionRestServerFormatter::$request_formatters in Services Client 7.2

Same name and namespace in other branches
  1. 7 services_client_connection/plugins/ServicesClientConnectionRestServer.inc \ServicesClientConnectionRestServerFormatter::request_formatters

List of available request formatters

File

services_client_connection/plugins/ServicesClientConnectionRestServer.inc, line 154

Class

ServicesClientConnectionRestServerFormatter

Code

protected static $request_formatters = array(
  'php' => array(
    'title' => 'PHP Serialized',
    'method' => 'formatSerialize',
    'content_type' => 'application/vnd.php.serialized',
  ),
  'json' => array(
    'title' => 'JSON',
    'method' => 'formatJson',
    'content_type' => 'application/json',
  ),
  'urlencode' => array(
    'title' => 'URL Encode',
    'method' => 'formatUrlEncode',
    'content_type' => 'application/x-www-form-urlencoded',
  ),
  'formdata' => array(
    'title' => 'Multipart Data',
    'method' => 'formatMultipart',
    'content_type' => 'multipart/form-data',
  ),
);