silverstripe-framework/api
Daniel Hensby f003359047 RestfulService_Response now gets response headers
Before now, the RestfulService_Response object was never sent the
response headers. For APIs that rely on the response headers to send
back information (signatures, pagination info, etc).

This change makes the curl response have the full HTTP response
(including Headers). We then extract the body and the header information
and assign them to relevant vars and then construct the response as
before (with the addition of the headers array).

This change required two new functions:
extractResponse: This extracts the HTTP Headers and the payload from the
curl response and assigns it to the relevany vars that are passed by
reference
parseRawHeaders: This was designed to mimic http_parse_headers (a
non-standard php class). It converts the headers into an associative
array.
2013-02-15 11:45:36 +00:00
..
DataFormatter.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
FormEncodedDataFormatter.php Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
JSONDataFormatter.php BUG JSONDataFormatter should respect canView() permissions 2012-11-05 14:03:39 +13:00
RestfulService.php RestfulService_Response now gets response headers 2013-02-15 11:45:36 +00:00
RSSFeed.php Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
XMLDataFormatter.php API Removed permission checks from XML/JSON data formatters 2012-10-30 23:34:29 +01:00