服务器根本不需要发回任何响应正文,所以你不必担心客户端下载数据。
The server doesn't have to send back any response body at all, so you don't have to worry about downloading data to the client.
ok值,指示服务器成功处理了客户端的请求并将请求的资源包括在响应正文中。
OK indicates that the server successfully processed the client's request and included the requested resource in the response body.
它负责发送响应正文中的一部分数据,可以多次调用此方法以发送正文中多个连续的部分。
This sends a chunk of the response body. This method may be called multiple times to provide successive parts of the body.
与客户机一样,服务器在其响应的正文中发送大量信息。
Like the client, the server sends the bulk of information in the body of its response.
请求程序仅通过此方法获取响应中的正文内容。
GET, where the requester only expects body content in the response.
该响应的正文是通常空的。
请求程序通过此方法发送请求中的正文内容,但不会获取响应中的正文内容。
PUT, where the requester sends body content in the request, but expects no body content in the response.
用类似于清单7中的那些代码(在那里客户机通过一个输出流发送其正文),客户机使用一个输入流读取服务器响应。
Along similar lines as Listing 7 (which shows a client sending its body through an output stream), the client would read the server response using an input stream.
此消息包括响应状态和所需的任何Header和正文。
This message includes the response status, any headers and the body, as needed.
RESTWeb服务应用程序(或客户端)在HTTPHeader和请求正文中包括服务器端组件生成响应所需要的所有参数、上下文和数据。
A REST Web service application (or client) includes within the HTTP headers and body of a request all of the parameters, context, and data needed by the server-side component to generate a response.
CherryPy应用程序方法通常情况下会以字符串的形式返回响应的正文,但是有时需要您设置附加的HTTP标题,进行一个重定向,或者改变HTTP响应代码。
A CherryPy application method typically returns the body of the response as a string, but sometimes you need to set additional HTTP headers, do a redirect, or change the HTTP response code.
清单8 中的 clj-http代码是从JSON响应转换而来的,方法是提取响应的正文并在其上调用 json/read-json。
The clj-http code in Listing 8 converts from the JSON response by taking the body of the response and calling json/read-json on it.
基于工程实例,分别研究了TLP波浪力、附加质量与附加阻尼、TLP的动力响应的一般规律,得到了一些富有工程意义的结论(详见正文)。
It also studied general variation regularities of wave force, added mass and added damping, TLP's kinetic respondence based on engineering examples and got some valuable conclusions (see text).
在此类设备发生错误时,请求返回HTTP响应代码200,指示成功,但页的正文包含错误信息。
When an error occurs for such a device, the request returns the HTTP response code 200, indicating success, but the body of the page contains the error message.
在此类设备发生错误时,请求返回HTTP响应代码200,指示成功,但页的正文包含错误信息。
When an error occurs for such a device, the request returns the HTTP response code 200, indicating success, but the body of the page contains the error message.
应用推荐