# param

open override fun param(name: String, value: String?)
Content copied to clipboard
open override fun param(name: String, value: Number?)
Content copied to clipboard
open override fun param(name: String, value: Boolean?)
Content copied to clipboard

基础类型表单参数

如果当前请求为Url请求则为Query参数 如果当前请求为表单请求则为表单参数 如果当前为Multipart包含流/文件的请求则为multipart参数

open override fun param(name: String, value: String?, encoded: Boolean)
Content copied to clipboard

基础类型表单参数

如果当前请求为Url请求则为Query参数 如果当前请求为表单请求则为表单参数 如果当前为Multipart包含流/文件的请求则为multipart参数

## Parameters

encoded

对应OkHttp参数函数中的encoded表示当前字段参数已经编码过. 不会再被自动编码

fun param(name: String, value: RequestBody?)
Content copied to clipboard
fun param(name: String, value: ByteString?)
Content copied to clipboard
fun param(name: String, value: ByteArray?)
Content copied to clipboard
fun param(name: String, value: Uri?)
Content copied to clipboard
fun param(name: String, value: File?)
Content copied to clipboard
fun param(name: String, value: List<File?>?)
Content copied to clipboard
fun param(name: String, fileName: String?, value: File?)
Content copied to clipboard
fun param(body: MultipartBody.Part)
Content copied to clipboard