| 3.1 Specification Changes
An Accept-Encoding header following RFC 2616 will be added to Section 3.5 of the RETS protocol specification, describing the current set of optional request headers:
Accept-Encoding: encoding [,encoding]
where encoding is the MIME type of the encoded data, for example, application/gzip. A client desiring a compressed return SHOULD request (and support) at least application/bzip.
A corresponding Content-Encoding optional response header will be added to Section 3.8 of the specification:
Content-Encoding: encoding
where encoding is the MIME type of the encoded data. A RETS-compliant server intending to support compression SHOULD support at least application/bzip.
The specification does not require either the client or the server to support compression. The server is permitted to ignore the client's Accept-Encoding header and supply the response unencoded.
3.2 Compression Methods
As noted above, RETS endpoints intending to support compression SHOULD accept and/or generate bzip encoding. bzip is similar to the popular gzip compression method, but has a less restrictive license than the GNU gzip library. (A Java implementation of bzip is also available under the LGPL.) Clients and servers are, of course, free to use any other encoding methods. |