接受请求头用于指定什么媒体类型对响应是合适的。
The Accept request header is used to specify which media types are appropriate for the response.
第 3行和第 4 行确定,在默认情况下,将使用文件parallelweb.en.html,来响应所有对text/html媒体类型的请求。
Lines 3 and 4 establish that by default we will serve the file parallelweb.en.html in response to all requests for the text/html media type.
Accept:Accept请求标头字段可用来指定客户端可以接受的特定媒体类型响应。
Accept: the accept request-header field can be used to specify certain media types responses that are acceptable to the client.
唯一的不同在于,指定请求和响应媒体以及响应实体类型之后,post字符串本身作为方法参数传递到resource . post方法。
The only difference is that the post string itself is passed in as a method parameter to the resource.post method after specifying the request and response media types and the response entity type.
唯一的不同在于,指定请求和响应媒体以及响应实体类型之后,post字符串本身作为方法参数传递到resource . post方法。
The only difference is that the post string itself is passed in as a method parameter to the resource.post method after specifying the request and response media types and the response entity type.
应用推荐