Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HTTP_UNAUTHORIZED (0.57 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
      fun authenticate(protocol: Protocol) {
        setUp(protocol)
        server.enqueue(
          MockResponse(
            code = HttpURLConnection.HTTP_UNAUTHORIZED,
            headers = headersOf("www-authenticate", "Basic realm=\"protected area\""),
            body = "Please authenticate.",
          ),
        )
        server.enqueue(
          MockResponse(body = "Successful auth!"),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
Back to top