IRestApiHelper
public interface IRestApiHelper
com.android.tradefed.util.IRestApiHelper |
用于执行REST API调用的帮助程序界面。
概括
公开方法 |
---|
abstract HttpResponse | execute (String method, String[] uriParts, options, JSONObject data) execute (String method, String[] uriParts, options, JSONObject data) 执行一个API请求。 |
公开方法
执行
public abstract HttpResponse execute (String method,
String[] uriParts,
options,
JSONObject data)
执行一个API请求。
参数 |
---|
method | String :请求的HTTP方法 |
uriParts | String :用于构造请求URI的URL编码的URI部分。 |
options | :用于构造查询字符串的未编码参数名称和值 |
data | JSONObject :要与请求一起发送的数据 |
退货 |
---|
HttpResponse | HttpResponse对象 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]