Java Code Examples for com.lzy.okgo.model.HttpParams#FileWrapper
The following examples show how to use
com.lzy.okgo.model.HttpParams#FileWrapper .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BodyRequest.java From okhttp-OkGo with Apache License 2.0 | 4 votes |
@SuppressWarnings("unchecked") @Override public R addFileWrapperParams(String key, List<HttpParams.FileWrapper> fileWrappers) { params.putFileWrapperParams(key, fileWrappers); return (R) this; }
Example 2
Source File: Request.java From okhttp-OkGo with Apache License 2.0 | 4 votes |
/** 默认返回第一个参数 */ public HttpParams.FileWrapper getFileParam(String key) { List<HttpParams.FileWrapper> values = params.fileParamsMap.get(key); if (values != null && values.size() > 0) return values.get(0); return null; }
Example 3
Source File: BodyRequest.java From BaseProject with Apache License 2.0 | 4 votes |
@SuppressWarnings("unchecked") @Override public R addFileWrapperParams(String key, List<HttpParams.FileWrapper> fileWrappers) { params.putFileWrapperParams(key, fileWrappers); return (R) this; }
Example 4
Source File: Request.java From BaseProject with Apache License 2.0 | 4 votes |
/** 默认返回第一个参数 */ public HttpParams.FileWrapper getFileParam(String key) { List<HttpParams.FileWrapper> values = params.fileParamsMap.get(key); if (values != null && values.size() > 0) return values.get(0); return null; }
Example 5
Source File: HasBody.java From okhttp-OkGo with Apache License 2.0 | votes |
R addFileWrapperParams(String key, List<HttpParams.FileWrapper> fileWrappers);
Example 6
Source File: HasBody.java From BaseProject with Apache License 2.0 | votes |
R addFileWrapperParams(String key, List<HttpParams.FileWrapper> fileWrappers);