AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | 所有成员列表
com.ab.network.toolbox.HttpStack接口 参考
类 com.ab.network.toolbox.HttpStack 继承关系图:
com.ab.network.toolbox.HttpClientStack com.ab.network.toolbox.HurlStack

Public 成员函数

HttpResponse performRequest (Request<?> request, Map< String, String > additionalHeaders) throws IOException, AuthFailureError
 

详细描述

An HTTP stack abstraction.

成员函数说明

HttpResponse com.ab.network.toolbox.HttpStack.performRequest ( Request<?>  request,
Map< String, String >  additionalHeaders 
) throws IOException, AuthFailureError

Performs an HTTP request with the given parameters.

A GET request is sent if request.getPostBody() == null. A POST request is sent otherwise, and the Content-Type header is set to request.getPostBodyContentType().

参数
requestthe request to perform
additionalHeadersadditional headers to be sent together with Request#getHeaders()
返回
the HTTP response

com.ab.network.toolbox.HurlStack 内被实现.


该接口的文档由以下文件生成: