Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for schemeMatches (0.13 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt

        responses += response
        routes += route
        if (!schemeMatches(response) || credential == null) return null
        val header =
          when (response.code) {
            407 -> "Proxy-Authorization"
            else -> "Authorization"
          }
        return response.request
          .newBuilder()
          .addHeader(header, credential)
          .build()
      }
    
      private fun schemeMatches(response: Response): Boolean {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.7K bytes
    - Viewed (0)
Back to top