Jump to content

Variant object

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Deltaspace42 (talk | contribs) at 19:01, 27 December 2023 (–{{Software-stub}}, +{{Network-software-stub}} using StubSorter). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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.[citation needed]

Example Scenario

[edit]

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

[edit]

References

[edit]
  1. ^ Fielding, Roy T.; Gettys, Jim; Mogul, Jeffrey C.; Nielsen, Henrik Frystyk; Berners-Lee, Tim (January 1997). Hypertext Transfer Protocol -- HTTP/1.1. IETF. doi:10.17487/RFC2068. RFC 2068. Retrieved 2009-10-24.
  2. ^ Fielding, Roy T.; Gettys, James; Mogul, Jeffrey C.; Nielsen, Henrik Frystyk; Masinter, Larry; Leach, Paul J.; Berners-Lee, Tim (June 1999). Hypertext Transfer Protocol -- HTTP/1.1. IETF. doi:10.17487/RFC2616. RFC 2616. Retrieved 2009-10-24.
[edit]