Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for link (6.24 sec)

  1. okhttp/src/test/java/okhttp3/internal/http/ExternalHttp2Example.kt

              .build(),
          )
        val response = call.execute()
        try {
          println(response.code)
          println("PROTOCOL ${response.protocol}")
          var line: String?
          while (response.body.source().readUtf8Line().also { line = it } != null) {
            println(line)
          }
        } finally {
          response.body.close()
        }
        client.connectionPool.evictAll()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

              source.readData(data)
            }
    
            in 5..7 -> {
              data.writeByte('\n'.code) // 'data' on a line of its own.
            }
    
            in 8..9 -> {
              id = source.readUtf8LineStrict().takeIf { it.isNotEmpty() }
            }
    
            in 10..12 -> {
              id = null // 'id' on a line of its own.
            }
    
            in 13..14 -> {
              type = source.readUtf8LineStrict().takeIf { it.isNotEmpty() }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

        when (mapping.type) {
          TYPE_IGNORED -> Unit
          TYPE_MAPPED, TYPE_DISALLOWED_STD3_MAPPED -> {
            sink.write(mapping.mappedTo)
          }
    
          TYPE_DEVIATION, TYPE_DISALLOWED_STD3_VALID, TYPE_VALID -> {
            sink.writeUtf8CodePoint(codePoint)
          }
    
          TYPE_DISALLOWED -> {
            sink.writeUtf8CodePoint(codePoint)
            result = false
          }
        }
    
        return result
      }
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  4. gradlew

    # Attempt to set APP_HOME
    
    # Resolve links: $0 may be a link
    app_path=$0
    
    # Need this for daisy-chained symlinks.
    while
        APP_HOME=${app_path%"${app_path##*/}"}  # leaves a trailing /; empty if no leading path
        [ -h "$app_path" ]
    do
        ls=$( ls -ld "$app_path" )
        link=${ls#*' -> '}
        case $link in             #(
          /*)   app_path=$link ;; #(
          *)    app_path=$APP_HOME$link ;;
        esac
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 24 09:00:26 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  5. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

          for (Element element : document.select("a[href]")) {
            String href = element.attr("href");
            HttpUrl link = response.request().url().resolve(href);
            if (link == null) continue; // URL is either invalid or its scheme isn't http/https.
            queue.add(link.newBuilder().fragment(null).build());
          }
        }
      }
    
      public static void main(String[] args) throws IOException {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 4.6K bytes
    - Viewed (0)
  6. samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java

    import okhttp3.mockwebserver.RecordedRequest;
    import okio.ByteString;
    
    /**
     * Runs a MockWebServer on localhost and uses it as the backend to receive an OAuth session.
     *
     * <p>Clients should call {@link #start}, {@link #newAuthorizeUrl} and {@link #close} in that order.
     * Clients may request multiple sessions.
     */
    public final class OAuthSessionFactory extends Dispatcher implements Closeable {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 3.8K bytes
    - Viewed (0)
  7. docs/contribute/code_of_conduct.md

       witnesses, please include them as well.
     * Your account of what occurred, and if you believe the incident is ongoing. If there is a publicly
       available record (e.g. a mailing list archive or a public IRC logger), please include a link.
     * Any additional information that may be helpful.
    
    After filing a report, a representative from the Square Code of Conduct committee will contact you
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java

        for (int i = 0; i < result.length; i++) {
          result[i] = cipherSuites.get(i).javaName();
        }
        return result;
      }
    
      /**
       * An SSL socket factory that forwards all calls to a delegate. Override {@link #configureSocket}
       * to customize a created socket before it is returned.
       */
      static class DelegatingSSLSocketFactory extends SSLSocketFactory {
        protected final SSLSocketFactory delegate;
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Mar 14 21:57:42 GMT 2019
    - 6.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

            }
          }
    
          // We've reached the end of the chain. If any cert in the chain is trusted, we're done.
          if (foundTrustedCertificate) {
            return result
          }
    
          // The last link isn't trusted. Fail.
          throw SSLPeerUnverifiedException(
            "Failed to find a trusted cert that signed $toVerify",
          )
        }
    
        throw SSLPeerUnverifiedException("Certificate chain too long: $result")
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. docs/works_with_okhttp.md

     * ⬜️ [Okio](https://github.com/square/okio/): A modern I/O API for Java.
     * [OkLog](https://github.com/simonpercic/OkLog): Response logging interceptor for OkHttp. Logs a URL link with URL-encoded response for every OkHttp call.
     * [Okurl](https://github.com/yschimke/okurl/wiki) A curl-like client for social networks and other APIs.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Jun 08 18:15:23 GMT 2022
    - 3.8K bytes
    - Viewed (0)
Back to top