zoukankan      html  css  js  c++  java
  • Content-Negotiation Header Quality Values

    HTTP: The Definitive Guide

    17.3.2 Content-Negotiation Header Quality Values
    The HTTP protocol defines quality values to allow clients to list multiple choices for each category of
    preference and associate an order of preference with each choice. For example, clients can send an
    Accept-Language header of the form:
    Accept-Language: en;q=0.5, fr;q=0.0, nl;q=1.0, tr;q=0.0
    Where the q values can range from 0.0 to 1.0 (with 0.0 being the lowest preference and 1.0 being the
    highest). The header above, then, says that the client prefers to receive a Dutch (nl) version of the
    document, but an English (en) version will do. Under no circumstances does the client want a French
    (fr) or Turkish (tr) version, though. Note that the order in which the preferences are listed is not
    important; only the q values associated with them are.
    Occasionally, the server may not have any documents that match any of the client's preferences. In
    this case, the server may change or transcode the document to match the client's preferences. This
    mechanism is discussed later in this chapter.

  • 相关阅读:
    主页面
    EasyUI写的登录界面
    SpringMVC学习笔记二第一个小的程序
    springmvc学习笔记一框架的理解
    mybitis学习笔记
    cheng gong de daima
    JQuery中如何使用事件来出发Ajax
    按照用户名和角色查询用户liferay
    在liferay中如何使用Ajax的请求
    [奇葩说]
  • 原文地址:https://www.cnblogs.com/rsapaper/p/6393059.html
Copyright © 2011-2022 走看看