注意客户端的代码只包含设置请求方法为GET的内容。
Notice the code for the client side consists only of setting the request method to GET.
除了请求方法和头字段外,通常不需要指定任何其他信息。
Oftentimes you will not need to specify any additional information beyond the request method and header fields.
客户名使用POST请求方法添加,而订单id则是生成的。
The customer name is added using the POST request method, while the order ID is generated.
requestType——从请求检索HTTP请求方法。
RequestType — retrieves the HTTP request method from the request.
servlet请求方法表示并包装来自用户的请求。
The servlet request object represents and wraps a request from a user.
例如,清单7显示了如何指定请求方法POST并通过流发送客户机数据。
For instance, Listing 7 shows how to specify the POST request method and send client data over a stream.
请求方法(requestmethod)确定数据如何发送给远程资源。
The request method determines how data will be sent to a remote resource.
接着,服务器将查看是否有另外已注册的处理程序在侦听WSDL请求方法。
The server will then look to see if there is any other registered handler listening for the WSDL request method.
一个请求的URL可以通过替换块和请求方法的参数来进行动态的更新。
A request URL can be updated dynamically using replacement blocks and parameters on the method.
通常,搜索表单应该使用GET作为请求方法,因为它们并不更改服务器上的任何数据。
In general, search forms should use GET as a request method, because they don't change any data on the server.
和HTTP一样,每个请求方法(规范必须支持)都有一个doxxx方法(图3)。
Each request method, which the specification must support, has a doxxx method just like HTTP (Figure 3).
每一次请求脚本时,它都会检查看请求方法是GET还是POST,然后采取相应的措施。
Each time the script is requested, it checks to see whether the request method is GET or POST and USES this distinction to decide the action to take.
从清单5的第一部分中您可以看到,有26个请求方法定义在AmazonAPI的WSDL中。
As you can see from the first part of Listing 5, there are 26 request methods defined in the WSDL for the Amazon API.
清单5显示了如何用特定请求方法GET和一个名为size值为large的参数打开一个HTTP连接。
Listing 5 shows how we would open an HTTP connection with a specified request method of GET, passing a parameter with the name size and a value of large.
一旦这个信息被获取,特定于服务器的实现代码必须获得到被请求方法的接口,并动态地调用这个方法,然后返回结果。
Once this information is obtained, the server-specific implementation code must obtain the interface to the requested method, dynamically invoke the method, and return the results.
总之,REST仅仅是一个规范,提供了一种标准方法供用户使用Web服务风格中的HTTP请求方法调用对Web资源的操作。
To summarize, REST is simply a specification that indicates a standard approach for a user to invoke operations on a Web resource using HTTP request methods in a Web service style.
除非响应的是一个HEAD请求,否则服务器就应该返回一个解释当前错误状况的实体,以及这是临时的还是永久性的状况。 这些状态码适用于任何请求方法。
Except when responding to a HEAD request, the server shouldinclude an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition.
在本例中,您使用AsyncFacebookRunner .request(…)方法,这是一个帮助器封装器方法,它通过运行在自己的线程中,使得底层的请求方法是异步的。
In this example, you use the AsyncFacebookRunner.request (...) method, which is a helper wrapper method to make the underlying request method asynchronous by running in its own thread.
有人请求帮助改善坦桑尼亚西南部偏远的Makete地区的交通状况,这是尝试一种新方法的机会。
A request for help in improving the availability of transport within the remote Makete District of southwestern Tanzania presented the opportunity to try a new approach.
这里有两种监测请求的基本方法。
@Get注释表明要为GET请求使用哪些方法。
The @Get annotation indicates which methods to use for GET requests.
如果请求是异步的,这个方法会在发送请求之后立即返回。
If the request is asynchronous, this method returns immediately after sending the request.
这种请求分类的方法为密集的团队提供了明显的指示。
The categorization of the Request provides an indication of which team is impacted.
请求程序通过此方法发送请求中的正文内容,但不会获取响应中的正文内容。
PUT, where the requester sends body content in the request, but expects no body content in the response.
运行时,客户机代码的请求将调用超类的方法,而超类将使用反射调用客户机请求的实际方法。
At runtime, the superclass's methods will be invoked by requests from our client code, and the superclass will use reflection to invoke the actual method requested by the client.
根据实施应用程序所用技术的不同,生成HTTP请求的方法也不同。
Depending on the technology used to implement the application, the method of generating the HTTP requests may vary.
将方法调用(事件)放入队列,以保证顺序。在队列中,在前一个方法请求返回之前,不会发送下一个方法请求。
The method calls (events) are queued, guaranteeing order; the next method request in the queue is not sent until the previous one returns.
该服务装载并发出了与服务方法请求相应的XML响应。
The service loads and sends the appropriate XML response based on the service method request.
这非常简单,使用注释处理请求、响应和方法。
This is quite simple, with annotations taking care of the request, response, and methods.
这种处理请求的方法在云计算环境中表现很出色。
This approach to request handling works nicely in a cloud computing environment.
应用推荐