xp-framework/xp-framework — pull request #256 by thekid (2013-03-08 19:22:43+00:00)
Title: Restformat for client

This pull request makes the `RestFormat` class usable within the client.

**Old** (but still supported)
```php
$response= $client->execute(create(new RestRequest('/'))
->withMethod(HttpConstants::POST)
->withPayload($data, new RestJsonSerializer())
);
```

**New**
```php
$response= $client->execute(create(new RestRequest('/'))
->withMethod(HttpConstants::POST)
->withPayload($data, RestFormat::$JSON)
);
```