Variant object

Variant objects in the context of HTTP are objects served by an Origin Content Server in a type of transmitted data variation (i.e. uncompressed, compressed, different languages, etc.).

HTTP/1.1 (1997–1999)[1][2] introduces Content/Accept headers. These are used in HTTP requests and responses to state which variant the data is presented in.

Example Scenario

Client:

GET /encoded_data.html HTTP/1.1
Host: www.example.com
Accept-Encoding: gzip

Server:

HTTP/1.1 200 OK 
Server: http-example-server
Content-Length: 23
Content-Encoding: gzip

<23 bytes of gzip compressed data>

See also

References

External links


This article is issued from Wikipedia - version of the 8/18/2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.