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 對象 |