Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for auth (0.37 sec)

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

        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.enqueue(
          MockResponse(
            code = HttpURLConnection.HTTP_PROXY_AUTH,
            headers = headersOf("Proxy-Authenticate", "Basic realm=\"localhost\""),
            body = "proxy auth required",
            inTunnel = true,
          ),
        )
        server.enqueue(MockResponse(inTunnel = true))
        server.enqueue(MockResponse())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheTest.kt

            .code(responseCode)
            .body("ABCDE")
            .addHeader("WWW-Authenticate: challenge")
        when (responseCode) {
          HttpURLConnection.HTTP_PROXY_AUTH -> {
            builder.addHeader("Proxy-Authenticate: Basic realm=\"protected area\"")
          }
    
          HttpURLConnection.HTTP_UNAUTHORIZED -> {
            builder.addHeader("WWW-Authenticate: Basic realm=\"protected area\"")
    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