Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for createFormData (0.06 sec)

  1. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

            return Part(headers, body)
          }
    
          @JvmStatic
          fun createFormData(
            name: String,
            value: String,
          ): Part = createFormData(name, null, value.toRequestBody())
    
          @JvmStatic
          fun createFormData(
            name: String,
            filename: String?,
            body: RequestBody,
          ): Part {
            val disposition =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        part = MultipartBody.Part.create(headersOf(), requestBody)
        part = MultipartBody.Part.create(requestBody)
        part = MultipartBody.Part.createFormData("", "")
        part = MultipartBody.Part.createFormData("", "", requestBody)
        part = MultipartBody.Part.createFormData("", null, requestBody)
        val headers: Headers? = part.headers
        val body: RequestBody = part.body
      }
    
      @Test
      fun multipartBodyBuilder() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top