Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for isHttps (0.09 sec)

  1. okhttp/src/main/kotlin/okhttp3/Request.kt

      val cacheUrlOverride: HttpUrl? = builder.cacheUrlOverride
    
      internal val tags: Map<KClass<*>, Any> = builder.tags.toMap()
    
      internal var lazyCacheControl: CacheControl? = null
    
      val isHttps: Boolean
        get() = url.isHttps
    
      /**
       * Constructs a new request.
       *
       * Use [Builder] for more fluent construction, including helper methods for various HTTP methods.
       *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:17:44 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt

       * http://android.com/foo HTTP/1.1") or only the path (like "GET /foo HTTP/1.1").
       */
      private fun includeAuthorityInRequestLine(
        request: Request,
        proxyType: Proxy.Type,
      ): Boolean {
        return !request.isHttps && proxyType == Proxy.Type.HTTP
      }
    
      /**
       * Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the request
       * URL is. Includes the query component if it exists.
       */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Cache.kt

            sentRequestMillis = sendRequestMillisString?.toLong() ?: 0L
            receivedResponseMillis = receivedResponseMillisString?.toLong() ?: 0L
            responseHeaders = responseHeadersBuilder.build()
    
            if (url.isHttps) {
              val blank = source.readUtf8LineStrict()
              if (blank.isNotEmpty()) {
                throw IOException("expected \"\" but was \"$blank\"")
              }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          // No cached response.
          if (cacheResponse == null) {
            return CacheStrategy(request, null)
          }
    
          // Drop the cached response if it's missing a required handshake.
          if (request.isHttps && cacheResponse.handshake == null) {
            return CacheStrategy(request, null)
          }
    
          // If this response shouldn't have been stored, it should never be used as a response source.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val default: HttpLoggingInterceptor.Logger = HttpLoggingInterceptor.Logger.DEFAULT
      }
    
      @Test
      fun httpUrl() {
        val httpUrl: HttpUrl = "".toHttpUrl()
        val isHttps: Boolean = httpUrl.isHttps
        val url: URL = httpUrl.toUrl()
        val uri: URI = httpUrl.toUri()
        val scheme: String = httpUrl.scheme
        val encodedUsername: String = httpUrl.encodedUsername
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Cookie.kt

            url.host == domain
          } else {
            domainMatch(url.host, domain)
          }
        if (!domainMatch) return false
    
        if (!pathMatch(url, path)) return false
    
        return !secure || url.isHttps
      }
    
      override fun equals(other: Any?): Boolean {
        return other is Cookie &&
          other.name == name &&
          other.value == value &&
          other.expiresAt == expiresAt &&
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. okhttp/api/okhttp.api

    	public static final fun get (Ljava/net/URI;)Lokhttp3/HttpUrl;
    	public static final fun get (Ljava/net/URL;)Lokhttp3/HttpUrl;
    	public fun hashCode ()I
    	public final fun host ()Ljava/lang/String;
    	public final fun isHttps ()Z
    	public final fun newBuilder ()Lokhttp3/HttpUrl$Builder;
    	public final fun newBuilder (Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
    	public static final fun parse (Ljava/lang/String;)Lokhttp3/HttpUrl;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

       */
      fun address(url: HttpUrl): Address {
        var useSslSocketFactory: SSLSocketFactory? = null
        var useHostnameVerifier: HostnameVerifier? = null
        var useCertificatePinner: CertificatePinner? = null
        if (url.isHttps) {
          useSslSocketFactory = sslSocketFactory
          useHostnameVerifier = hostnameVerifier
          useCertificatePinner = certificatePinner
        }
    
        return Address(
          uriHost = url.host,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

       * | `http://host/#abc`     | `"abc"`      |
       * | `http://host/#abc|def` | `"abc|def"`  |
       */
      @get:JvmName("fragment") val fragment: String?,
      /** Canonical URL. */
      private val url: String,
    ) {
      val isHttps: Boolean
        get() = scheme == "https"
    
      /** Returns this URL as a [java.net.URL][URL]. */
      @JvmName("url")
      fun toUrl(): URL {
        try {
          return URL(url)
        } catch (e: MalformedURLException) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    	if !want.Contains(trcInfo.TraceType) {
    		return false
    	}
    
    	isHTTP := trcInfo.TraceType.Overlaps(madmin.TraceInternal|madmin.TraceS3) && trcInfo.HTTP != nil
    
    	// Check latency...
    	if opts.Threshold > 0 && trcInfo.Duration < opts.Threshold {
    		return false
    	}
    
    	// Check internal path
    	isInternal := isHTTP && HasPrefix(trcInfo.HTTP.ReqInfo.Path, minioReservedBucketPath+SlashSeparator)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top