Similarly, the HTML message is the output if the method that produces the text / html media type is uncommented in the resource class and the Accept header is set to receive the same media type. 类似地,如果在资源类中,生成text/html媒体类型的方法是未注释的,那么输出为HTML消息,而Accept头被设置为接收相同的媒体类型。
In addition, if a resource representation should be returned, a return queue parameter is specified in the header. 另外,如果一个资源表示需要被返回,在回复的消息头部中会申明一个返回队列参数。
The server then returns the resource representation as the specified type ( if it can ), and populates the Content-Type header in the response with the actual media type delivered to the client. 然后该服务器返回资源表示形式作为指定的类型(如果可以),并用提供给客户端的实际媒体类型填充响应中的Content-Type标头。