Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for commonRun (0.09 sec)

  1. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

    import javax.net.ssl.TrustManager
    import javax.net.ssl.X509TrustManager
    import okhttp3.Call
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.curl.internal.commonCreateRequest
    import okhttp3.curl.internal.commonRun
    import okhttp3.curl.logging.LoggingUtil
    import okhttp3.internal.platform.Platform
    import okhttp3.logging.HttpLoggingInterceptor
    import okhttp3.logging.LoggingEventListener
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt

        } ?: "application/x-www-form-urlencoded"
    
      return mimeType.toMediaTypeOrNull()
    }
    
    private fun isSpecialHeader(s: String): Boolean {
      return s.equals("Content-Type", ignoreCase = true)
    }
    
    fun Main.commonRun() {
      client = createClient()
      val request = createRequest()
    
      try {
        val response = client!!.newCall(request).execute()
        if (showHeaders) {
          println(StatusLine.get(response))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt

    fun Request.Builder.commonPost(body: RequestBody): Request.Builder = method("POST", body)
    
    fun Request.Builder.commonDelete(body: RequestBody?): Request.Builder = method("DELETE", body)
    
    fun Request.Builder.commonPut(body: RequestBody): Request.Builder = method("PUT", body)
    
    fun Request.Builder.commonPatch(body: RequestBody): Request.Builder = method("PATCH", body)
    
    fun Request.Builder.commonMethod(
      method: String,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top