Returns a list of languages as a comma-delimited string.ExampleAs information output on a page or to a log:HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.50 As part of an Idoc Script statement or evaluation:<$if HTTP_ACCEPT_LANGUAGE$> <!--statement--> ...
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 Accept-Encoding:gzip, deflate, br Accept-Language:en-US,en;q=0.9 在这个示例中: 请求行包括GET方法、URL为/index.html和协议版本为HTTP/1.1。 请求头部包括Host、User-Agent、Accept、Accept-Encoding和Accept...
请求头域可能包含下列字段Accept、Accept-Charset、Accept- Encoding、Accept-Language、Authorization、From、Host、If-Modified-Since、If- Match、If-None-Match、If-Range、If-Range、If-Unmodified-Since、Max-Forwards、 Proxy-Authorization、Range、Referer、User-Agent。对请求头域的扩展要求通讯双方都支持,如果存在不...
accept-language: es-mx,es,en The order in which the values appear in the header determines the hierarchy of importance. WebSEAL checks the first listed value to see whether it is a supported language. If it is not a supported language, WebSEAL checks the next language in the list. If ...
classSomeController<ApplicationControllerbefore_filter:set_localeprivatedefset_localeI18n.locale=http_accept_language.compatible_language_from(I18n.available_locales)endend If you want to enable this behavior by default in your controllers, you can just include the provided concern: ...
支持语言 对于发送方而言,还有一个Content-Language字段,在需要实现国际化的方案当中,可以用来指定支持的语言,在接受方对应的字段为Accept-Language。Content-Language: zh-CN, zh, en // 发送端 Accept-Language: zh-CN, zh, en // 接收端字符集 最后是一个比较特殊的字段, 在接收端对应为Accept-Charset,指定...
User-Agent:Mozilla/5.0(Windows;U;WindowsNT6.1;en-US;rv:1.9.1.5)Gecko/20091102Firefox/3.5.5(.NETCLR3.5.30729)Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate ...
The language quality factor assigned to a language-tag by the Accept-Language field is the quality value of the longest language-range in the field that matches the language-tag. If no language-range in the field matches the tag, the language quality factor(权重因子) assigned is 0. If no...
AcceptLanguage 获取或设置Accept-LanguageHTTP 标头。 AcceptRanges 获取或设置Accept-RangesHTTP 标头。 AccessControlAllowCredentials 获取或设置Access-Control-Allow-CredentialsHTTP 标头。 AccessControlAllowHeaders 获取或设置Access-Control-Allow-HeadersHTTP 标头。
在下文中一共展示了HttpRequest::SetAcceptLanguage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。 示例1: ngx_http_cxxmvc_handler ▲点赞 9▼ staticngx_int_tngx_http_cxxmvc_handler(ngx_http_request_t*r){using...