index.html 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <html>
  2. <head>
  3. <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
  4. <title>BodyRequest</title>
  5. <link href="../../../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script> </head>
  6. <body>
  7. <div id="container">
  8. <div id="leftColumn"><a href="../../../index.html">
  9. <div id="logo"></div>
  10. </a>
  11. <div id="paneSearch"></div>
  12. <div id="sideMenu"></div>
  13. </div>
  14. <div id="main">
  15. <div id="leftToggler"><span class="icon-toggler"></span></div>
  16. <script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="Net::com.drake.net.request/BodyRequest///PointingToDeclaration//1281733757">
  17. <div class="navigation-wrapper" id="navigation-wrapper">
  18. <div class="breadcrumbs"><a href="../../../index.html">Net</a>/<a href="../index.html">com.drake.net.request</a>/<a href="index.html">BodyRequest</a></div>
  19. <div class="pull-right d-flex">
  20. <div id="searchBar"></div>
  21. </div>
  22. </div>
  23. <div class="cover ">
  24. <h1 class="cover"><span>Body</span><wbr></wbr><span>Request</span></h1>
  25. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open class <a href="index.html">BodyRequest</a> : <a href="../-base-request/index.html">BaseRequest</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  26. </div>
  27. <div class="tabbedcontent">
  28. <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Functions">Functions</button><button class="section-tab" data-togglable="Properties">Properties</button></div>
  29. <div class="tabs-section-body">
  30. <h2 class="">Functions</h2>
  31. <div class="table" data-togglable="Functions"><a data-name="2014125476%2FFunctions%2F1281733757" anchor-label="addUploadListener" id="2014125476%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  32. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  33. <div class="main-subrow keyValue ">
  34. <div class=""><span class="inline-flex"><a href="add-upload-listener.html">addUploadListener</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="2014125476%2FFunctions%2F1281733757"></span>
  35. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  36. </span></span></div>
  37. <div>
  38. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  39. <div>
  40. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="add-upload-listener.html">addUploadListener</a>(progressListener: <a href="../../com.drake.net.interfaces/-progress-listener/index.html">ProgressListener</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  41. </div>
  42. <a data-name="2014125476%2FFunctions%2F1281733757" anchor-label="addUploadListener" id="2014125476%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="2014125476%2FFunctions%2F1281733757" anchor-label="addUploadListener" id="2014125476%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>添加上传进度监听器</div></div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <a data-name="1892769275%2FFunctions%2F1281733757" anchor-label="buildRequest" id="1892769275%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  48. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  49. <div class="main-subrow keyValue ">
  50. <div class=""><span class="inline-flex"><a href="build-request.html">buildRequest</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1892769275%2FFunctions%2F1281733757"></span>
  51. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  52. </span></span></div>
  53. <div>
  54. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  55. <div>
  56. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="build-request.html">buildRequest</a>(): <span data-unresolved-link="okhttp3/Request///PointingToDeclaration/">Request</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  57. </div>
  58. <a data-name="1892769275%2FFunctions%2F1281733757" anchor-label="buildRequest" id="1892769275%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="1892769275%2FFunctions%2F1281733757" anchor-label="buildRequest" id="1892769275%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>构建请求对象Request</div></div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. <a data-name="-2067411403%2FFunctions%2F1281733757" anchor-label="json" id="-2067411403%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  64. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  65. <div class="main-subrow keyValue ">
  66. <div class=""><span class="inline-flex"><a href="json.html">json</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2067411403%2FFunctions%2F1281733757"></span>
  67. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  68. </span></span></div>
  69. <div>
  70. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  71. <div>
  72. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="json.html">json</a>(vararg body: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?&gt;)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  73. </div>
  74. <a data-name="119724165%2FFunctions%2F1281733757" anchor-label="json" id="119724165%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="119724165%2FFunctions%2F1281733757" anchor-label="json" id="119724165%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>添加Json对象为请求体</div></div>
  75. <div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  76. <div>
  77. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="json.html">json</a>(body: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  78. </div>
  79. <a data-name="-1323433581%2FFunctions%2F1281733757" anchor-label="json" id="-1323433581%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="-1323433581%2FFunctions%2F1281733757" anchor-label="json" id="-1323433581%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>添加Json为请求体</div></div>
  80. <div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  81. <div>
  82. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="json.html">json</a>(body: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html">Map</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?&gt;?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  83. </div>
  84. <a data-name="-400977531%2FFunctions%2F1281733757" anchor-label="json" id="-400977531%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="-400977531%2FFunctions%2F1281733757" anchor-label="json" id="-400977531%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>添加Json为请求体</div></div>
  85. <div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  86. <div>
  87. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="json.html">json</a>(body: <a href="https://developer.android.com/reference/kotlin/org/json/JSONArray.html">JSONArray</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  88. </div>
  89. <a data-name="1052320772%2FFunctions%2F1281733757" anchor-label="json" id="1052320772%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="1052320772%2FFunctions%2F1281733757" anchor-label="json" id="1052320772%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>添加Json为请求体</div></div>
  90. <div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  91. <div>
  92. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="json.html">json</a>(body: <a href="https://developer.android.com/reference/kotlin/org/json/JSONObject.html">JSONObject</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  93. </div>
  94. <a data-name="-562666856%2FFunctions%2F1281733757" anchor-label="json" id="-562666856%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="-562666856%2FFunctions%2F1281733757" anchor-label="json" id="-562666856%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>添加Json为请求体</div></div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <a data-name="929665573%2FFunctions%2F1281733757" anchor-label="param" id="929665573%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  100. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  101. <div class="main-subrow keyValue ">
  102. <div class=""><span class="inline-flex"><a href="param.html">param</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="929665573%2FFunctions%2F1281733757"></span>
  103. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  104. </span></span></div>
  105. <div>
  106. <div class="title"><div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  107. <div>
  108. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">fun <a href="param.html">param</a>(body: <span data-unresolved-link="okhttp3/MultipartBody.Part///PointingToDeclaration/">MultipartBody.Part</span>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, value: <a href="https://developer.android.com/reference/kotlin/android/net/Uri.html">Uri</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, value: <a href="https://developer.android.com/reference/kotlin/java/io/File.html">File</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a>&lt;<a href="https://developer.android.com/reference/kotlin/java/io/File.html">File</a>?&gt;?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, value: <span data-unresolved-link="okhttp3/RequestBody///PointingToDeclaration/">RequestBody</span>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, value: <span data-unresolved-link="okio/ByteString///PointingToDeclaration/">ByteString</span>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, fileName: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, value: <a href="https://developer.android.com/reference/kotlin/java/io/File.html">File</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  109. </div>
  110. </div>
  111. <div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  112. <div>
  113. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  114. </div>
  115. <a data-name="-2136373966%2FFunctions%2F1281733757" anchor-label="param" id="-2136373966%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="-2136373966%2FFunctions%2F1281733757" anchor-label="param" id="-2136373966%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>基础类型表单参数如果当前请求为Url请求则为Query参数 如果当前请求为表单请求则为表单参数 如果当前为Multipart包含流/文件的请求则为multipart参数</div></div>
  116. <div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  117. <div>
  118. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html">Number</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  119. </div>
  120. <a data-name="-1055416797%2FFunctions%2F1281733757" anchor-label="param" id="-1055416797%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="-1055416797%2FFunctions%2F1281733757" anchor-label="param" id="-1055416797%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>基础类型表单参数如果当前请求为Url请求则为Query参数 如果当前请求为表单请求则为表单参数 如果当前为Multipart包含流/文件的请求则为multipart参数</div></div>
  121. <div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  122. <div>
  123. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  124. </div>
  125. <a data-name="1124354795%2FFunctions%2F1281733757" anchor-label="param" id="1124354795%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="1124354795%2FFunctions%2F1281733757" anchor-label="param" id="1124354795%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>基础类型表单参数如果当前请求为Url请求则为Query参数 如果当前请求为表单请求则为表单参数 如果当前为Multipart包含流/文件的请求则为multipart参数</div></div>
  126. <div class="divergent-group" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>
  127. <div>
  128. <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><div class="symbol monospace">open override fun <a href="param.html">param</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, encoded: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  129. </div>
  130. <a data-name="-253643463%2FFunctions%2F1281733757" anchor-label="param" id="-253643463%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="brief "><a data-name="-253643463%2FFunctions%2F1281733757" anchor-label="param" id="-253643463%2FFunctions%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>基础类型表单参数如果当前请求为Url请求则为Query参数 如果当前请求为表单请求则为表单参数 如果当前为Multipart包含流/文件的请求则为multipart参数</div></div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. <h2 class="">Properties</h2>
  137. <div class="table" data-togglable="Properties"><a data-name="549936826%2FProperties%2F1281733757" anchor-label="body" id="549936826%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  138. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  139. <div class="main-subrow keyValue ">
  140. <div class=""><span class="inline-flex"><a href="body.html">body</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="549936826%2FProperties%2F1281733757"></span>
  141. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  142. </span></span></div>
  143. <div>
  144. <div class="title">
  145. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="549936826%2FProperties%2F1281733757" anchor-label="body" id="549936826%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">open var <a href="body.html">body</a>: <span data-unresolved-link="okhttp3/RequestBody///PointingToDeclaration/">RequestBody</span>? = null<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="549936826%2FProperties%2F1281733757" anchor-label="body" id="549936826%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>请求体</div></div></div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <a data-name="-991469354%2FProperties%2F1281733757" anchor-label="formBody" id="-991469354%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  151. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  152. <div class="main-subrow keyValue ">
  153. <div class=""><span class="inline-flex"><a href="form-body.html">formBody</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-991469354%2FProperties%2F1281733757"></span>
  154. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  155. </span></span></div>
  156. <div>
  157. <div class="title">
  158. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="-991469354%2FProperties%2F1281733757" anchor-label="formBody" id="-991469354%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">open var <a href="form-body.html">formBody</a>: <span data-unresolved-link="okhttp3/FormBody.Builder///PointingToDeclaration/">FormBody.Builder</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="-991469354%2FProperties%2F1281733757" anchor-label="formBody" id="-991469354%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>表单请求体 当你设置<code>partBody</code>后当前表单请求体中的所有参数都会被存放到partBody中</div></div></div>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <a data-name="-1922077376%2FProperties%2F1281733757" anchor-label="mediaType" id="-1922077376%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  164. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  165. <div class="main-subrow keyValue ">
  166. <div class=""><span class="inline-flex"><a href="media-type.html">mediaType</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1922077376%2FProperties%2F1281733757"></span>
  167. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  168. </span></span></div>
  169. <div>
  170. <div class="title">
  171. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="-1922077376%2FProperties%2F1281733757" anchor-label="mediaType" id="-1922077376%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">open var <a href="media-type.html">mediaType</a>: <span data-unresolved-link="okhttp3/MediaType///PointingToDeclaration/">MediaType</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="-1922077376%2FProperties%2F1281733757" anchor-label="mediaType" id="-1922077376%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>multipart请求体的媒体类型</div></div></div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <a data-name="757989531%2FProperties%2F1281733757" anchor-label="method" id="757989531%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  177. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  178. <div class="main-subrow keyValue ">
  179. <div class=""><span class="inline-flex"><a href="method.html">method</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="757989531%2FProperties%2F1281733757"></span>
  180. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  181. </span></span></div>
  182. <div>
  183. <div class="title">
  184. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="757989531%2FProperties%2F1281733757" anchor-label="method" id="757989531%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">open override var <a href="method.html">method</a>: <a href="../-method/index.html">Method</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="757989531%2FProperties%2F1281733757" anchor-label="method" id="757989531%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>请求方法</div></div></div>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. <a data-name="1097460743%2FProperties%2F1281733757" anchor-label="partBody" id="1097460743%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>
  190. <div class="table-row" data-filterable-current=":net:dokkaHtml/release" data-filterable-set=":net:dokkaHtml/release">
  191. <div class="main-subrow keyValue ">
  192. <div class=""><span class="inline-flex"><a href="part-body.html">partBody</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1097460743%2FProperties%2F1281733757"></span>
  193. <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
  194. </span></span></div>
  195. <div>
  196. <div class="title">
  197. <div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":net:dokkaHtml/release"><a data-name="1097460743%2FProperties%2F1281733757" anchor-label="partBody" id="1097460743%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a><div class="symbol monospace">open var <a href="part-body.html">partBody</a>: <span data-unresolved-link="okhttp3/MultipartBody.Builder///PointingToDeclaration/">MultipartBody.Builder</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="1097460743%2FProperties%2F1281733757" anchor-label="partBody" id="1097460743%2FProperties%2F1281733757" data-filterable-set=":net:dokkaHtml/release"></a>multipart请求体 主要存放文件/IO流</div></div></div>
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </div>
  206. <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2023 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
  207. </div>
  208. </div>
  209. </body>
  210. </html>