类 play.libs.WS.HttpResponse
的使用

使用 WS.HttpResponse 的软件包
play.libs   
play.libs.ws   
 

play.libsWS.HttpResponse 的使用
 

声明为 WS.HttpResponseplay.libs 中的字段
 WS.HttpResponse OAuth2.Response.httpResponse
           
 

返回 WS.HttpResponseplay.libs 中的方法
abstract  WS.HttpResponse WS.WSRequest.delete()
          Execute a DELETE request.
abstract  WS.HttpResponse WS.WSRequest.get()
          Execute a GET request synchronously.
abstract  WS.HttpResponse WS.WSRequest.head()
          Execute a HEAD request.
abstract  WS.HttpResponse WS.WSRequest.options()
          Execute a OPTIONS request.
abstract  WS.HttpResponse WS.WSRequest.post()
          Execute a POST request.
abstract  WS.HttpResponse WS.WSRequest.put()
          Execute a PUT request.
abstract  WS.HttpResponse WS.WSRequest.trace()
          Execute a TRACE request.
 

返回变量类型为 WS.HttpResponse 的类型的 play.libs 中的方法
 F.Promise<WS.HttpResponse> WS.WSRequest.deleteAsync()
          Execute a DELETE request asynchronously.
 F.Promise<WS.HttpResponse> WS.WSRequest.getAsync()
          Execute a GET request asynchronously.
 F.Promise<WS.HttpResponse> WS.WSRequest.headAsync()
          Execute a HEAD request asynchronously.
 F.Promise<WS.HttpResponse> WS.WSRequest.optionsAsync()
          Execute a OPTIONS request asynchronously.
 F.Promise<WS.HttpResponse> WS.WSRequest.postAsync()
          Execute a POST request asynchronously.
 F.Promise<WS.HttpResponse> WS.WSRequest.putAsync()
          Execute a PUT request asynchronously.
 F.Promise<WS.HttpResponse> WS.WSRequest.traceAsync()
          Execute a TRACE request asynchronously.
 

参数类型为 WS.HttpResponseplay.libs 中的方法
static OAuth2.Response OAuth2.Response.error(OAuth2.Error error, WS.HttpResponse response)
           
 

参数类型为 WS.HttpResponseplay.libs 中的构造方法
OAuth2.Response(WS.HttpResponse response)
           
 

play.libs.wsWS.HttpResponse 的使用
 

play.libs.wsWS.HttpResponse 的子类
static class WSAsync.HttpAsyncResponse
          An HTTP response wrapper
static class WSUrlFetch.HttpUrlfetchResponse
          An HTTP response wrapper
 

返回 WS.HttpResponseplay.libs.ws 中的方法
 WS.HttpResponse WSUrlFetch.WSUrlfetchRequest.delete()
          Execute a DELETE request.
 WS.HttpResponse WSAsync.WSAsyncRequest.delete()
          Execute a DELETE request.
 WS.HttpResponse WSUrlFetch.WSUrlfetchRequest.get()
          Execute a GET request synchronously.
 WS.HttpResponse WSAsync.WSAsyncRequest.get()
          Execute a GET request synchronously.
 WS.HttpResponse WSUrlFetch.WSUrlfetchRequest.head()
          Execute a HEAD request.
 WS.HttpResponse WSAsync.WSAsyncRequest.head()
          Execute a HEAD request.
 WS.HttpResponse WSUrlFetch.WSUrlfetchRequest.options()
          Execute a OPTIONS request.
 WS.HttpResponse WSAsync.WSAsyncRequest.options()
          Execute a OPTIONS request.
 WS.HttpResponse WSUrlFetch.WSUrlfetchRequest.post()
          Execute a POST request.
 WS.HttpResponse WSAsync.WSAsyncRequest.post()
          Execute a POST request.
 WS.HttpResponse WSUrlFetch.WSUrlfetchRequest.put()
          Execute a PUT request.
 WS.HttpResponse WSAsync.WSAsyncRequest.put()
          Execute a PUT request.
 WS.HttpResponse WSUrlFetch.WSUrlfetchRequest.trace()
          Execute a TRACE request.
 WS.HttpResponse WSAsync.WSAsyncRequest.trace()
          Execute a TRACE request.
 

返回变量类型为 WS.HttpResponse 的类型的 play.libs.ws 中的方法
 F.Promise<WS.HttpResponse> WSAsync.WSAsyncRequest.deleteAsync()
          Execute a DELETE request asynchronously.
 F.Promise<WS.HttpResponse> WSAsync.WSAsyncRequest.getAsync()
          Execute a GET request asynchronously.
 F.Promise<WS.HttpResponse> WSAsync.WSAsyncRequest.headAsync()
          Execute a HEAD request asynchronously.
 F.Promise<WS.HttpResponse> WSAsync.WSAsyncRequest.optionsAsync()
          Execute a OPTIONS request asynchronously.
 F.Promise<WS.HttpResponse> WSAsync.WSAsyncRequest.postAsync()
          Execute a POST request asynchronously.
 F.Promise<WS.HttpResponse> WSAsync.WSAsyncRequest.putAsync()
          Execute a PUT request asynchronously.
 F.Promise<WS.HttpResponse> WSAsync.WSAsyncRequest.traceAsync()
          Execute a TRACE request asynchronously.
 



Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly