net / com.drake.net / Net
object Net
Name | Summary |
---|---|
addDownloadListener | 监听正在请求的下载进度fun addDownloadListener(id: Any , progressListener: ProgressListener ): Unit |
addUploadListener | 监听正在请求的上传进度fun addUploadListener(id: Any , progressListener: ProgressListener ): Unit |
cancelAll | 取消全部网络请求fun cancelAll(): Unit |
cancelGroup | 根据分组取消网络请求fun cancelGroup(group: Any ?): Boolean |
cancelId | 取消指定的网络请求, Id理论上是唯一的, 所以该函数一次只能取消一个请求fun cancelId(id: Any ?): Boolean |
delete | fun delete(path: String , tag: Any ? = null, block: ( BodyRequest .() -> Unit )? = null): <ERROR CLASS> |
get | 同步网络请求fun get(path: String , tag: Any ? = null, block: ( UrlRequest .() -> Unit )? = null): <ERROR CLASS> |
head | fun head(path: String , tag: Any ? = null, block: ( UrlRequest .() -> Unit )? = null): <ERROR CLASS> |
options | fun options(path: String , tag: Any ? = null, block: ( UrlRequest .() -> Unit )? = null): <ERROR CLASS> |
patch | fun patch(path: String , tag: Any ? = null, block: ( BodyRequest .() -> Unit )? = null): <ERROR CLASS> |
post | fun post(path: String , tag: Any ? = null, block: ( BodyRequest .() -> Unit )? = null): <ERROR CLASS> |
put | fun put(path: String , tag: Any ? = null, block: ( BodyRequest .() -> Unit )? = null): <ERROR CLASS> |
removeDownloadListener | 删除正在请求的下载进度监听器fun removeDownloadListener(id: Any , progressListener: ProgressListener ): Unit |
removeUploadListener | 删除正在请求的上传进度监听器fun removeUploadListener(id: Any , progressListener: ProgressListener ): Unit |
requestByGroup | 指定分组的请求fun requestByGroup(group: Any ): ArrayList <Request> |
requestById | 指定Id的请求fun requestById(id: Any ): Request? |
trace | fun trace(path: String , tag: Any ? = null, block: ( UrlRequest .() -> Unit )? = null): <ERROR CLASS> |