HTTP compression works as a client defining a header Accept-Encodingwith the types of compression it accepts:
Accept-Encoding: compress, gzip
The server then sees this and will choose one of the encoding types based on the accept encoding rules defined here . The answer will be in one of the accepted values or in the encoding of identification.
Requests:
In general, a request cannot be compressed first because the message begins with the request. An HTTP client could send a request for parameters, although using this, if you have control over the source code of the client and server, you can do this.
OPTIONS , /, Request-URI. / , , , .
apache SVN, svn. HTTP .
. RFC 2616: 9