Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for geturl (0.22 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          val code = response.code
          if (code != HTTP_TEMP_REDIRECT && code != HTTP_PERM_REDIRECT) return response
          val method = response.request.method
          if (method == "GET" || method == "HEAD") return response
          val location = response.header("Location") ?: return response
          return response.newBuilder()
            .removeHeader("Location")
            .header("LegacyRedirectInterceptor-Location", location)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheTest.kt

        client.newCall(request).execute().use {
          it.body.bytes()
        }
        return client.newCall(request).execute()
      }
    
      private operator fun get(url: HttpUrl): Response {
        val request =
          Request.Builder()
            .url(url)
            .build()
        return client.newCall(request).execute()
      }
    
      private fun writeFile(
        directory: Path,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
Back to top