Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for schemeMatches (0.29 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 {
        if (scheme == null) return true
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/FileOrUriNotationConverter.java

                    convertToUrl(notationString, result);
                    return;
                }
                Matcher schemeMatcher = URI_SCHEME.matcher(notationString);
                if (schemeMatcher.matches()) {
                    String scheme = schemeMatcher.group(1);
                    if (isWindowsRootDirectory(scheme)) {
                        result.converted(new File(notationString));
                        return;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 01:09:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top