11.07.2015 Views

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.9 Quality ValuesHTTP content negotiation (section 12) uses short "floating point"numbers to indicate the relative importance ("weight") of variousnegotiable parameters. A weight is normalized to a real number inthe range 0 through 1, where 0 is the minimum and 1 the maximumvalue. If a parameter has a quality value of 0, then content withthis parameter is `not acceptable' <strong>for</strong> the client. HTTP/1.1applications MUST NOT generate more than three digits after thedecimal point. User configuration of these values SHOULD also belimited in this fashion.qvalue = ( "0" [ "." 0*3DIGIT ] )| ( "1" [ "." 0*3("0") ] )"Quality values" is a misnomer, since these values merely representrelative degradation in desired quality.3.10 Language TagsA language tag identifies a natural language spoken, written, orotherwise conveyed by human beings <strong>for</strong> communication of in<strong>for</strong>mationto other human beings. Computer languages are explicitly excluded.HTTP uses language tags within the Accept-Language and Content-Language fields.The syntax and registry of HTTP language tags is the same as thatdefined by RFC 1766 [1]. In summary, a language tag is composed of 1or more parts: A primary language tag and a possibly empty series ofsubtags:language-tag = primary-tag *( "-" subtag )primary-tag = 1*8ALPHAsubtag = 1*8ALPHAWhite space is not allowed within the tag and all tags are caseinsensitive.The name space of language tags is administered by theIANA. Example tags include:en, en-US, en-cockney, i-cherokee, x-pig-latin<strong>Fielding</strong>, et al. Standards Track [Page 29]RFC <strong>2616</strong> HTTP/1.1 June 1999where any two-letter primary-tag is an ISO-639 language abbreviation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!