public class RequestWrapper extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_METHOD |
| 构造器和说明 |
|---|
RequestWrapper(String url,
String method,
okhttp3.Headers headers,
okhttp3.RequestBody requestBody,
Object tag) |
| 限定符和类型 | 方法和说明 |
|---|---|
static RequestWrapper |
buildGet(String url,
okhttp3.RequestBody requestBody) |
static RequestWrapper |
buildPost(String url,
okhttp3.RequestBody requestBody) |
static RequestWrapper |
newWrapper(okhttp3.Request request) |
static RequestWrapper |
newWrapper(String url) |
static RequestWrapper |
newWrapper(String url,
String method,
okhttp3.Headers headers,
okhttp3.RequestBody requestBody) |
static RequestWrapper |
newWrapper(String url,
String method,
okhttp3.Headers headers,
okhttp3.RequestBody requestBody,
Object tag) |
static RequestWrapper |
newWrapper(String url,
String method,
okhttp3.RequestBody requestBody) |
okhttp3.Request |
toRequest() |
public okhttp3.Request toRequest()
public static RequestWrapper newWrapper(okhttp3.Request request) throws IOException
IOExceptionpublic static RequestWrapper newWrapper(String url, String method, okhttp3.Headers headers, okhttp3.RequestBody requestBody, Object tag)
public static RequestWrapper newWrapper(String url, String method, okhttp3.Headers headers, okhttp3.RequestBody requestBody) throws IOException
IOExceptionpublic static RequestWrapper newWrapper(String url, String method, okhttp3.RequestBody requestBody) throws IOException
IOExceptionpublic static RequestWrapper buildGet(String url, okhttp3.RequestBody requestBody) throws IOException
IOExceptionpublic static RequestWrapper buildPost(String url, okhttp3.RequestBody requestBody)
public static RequestWrapper newWrapper(String url)
Copyright © 2017. All rights reserved.