Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for robot (0.13 sec)

  1. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            .addHeader("Cookie: s=square")
            .addHeader("Cookie: a=android")
            .addHeader("Cookies: delicious")
        response.setHeader("cookie", "r=robot")
        assertThat(headersToList(response))
          .containsExactly("Cookies: delicious", "cookie: r=robot")
      }
    
      @Test
      fun mockResponseSetHeaders() {
        val response =
          MockResponse()
            .clearHeaders()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.acceptFrame() // ACK
        peer.acceptFrame() // SYN_STREAM
        peer.acceptFrame() // DATA
        peer.sendFrame().headers(false, 3, headerEntries("a", "android"))
        peer.sendFrame().data(true, 3, Buffer().writeUtf8("robot"), 5)
        peer.acceptFrame() // PING
        peer.sendFrame().ping(true, Http2Connection.AWAIT_PING, 0) // PING
        peer.play()
    
        // Play it back.
        val connection = connect(peer)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  3. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

    import okio.Okio;
    
    public class SampleServer extends Dispatcher {
      private final SSLContext sslContext;
      private final String root;
      private final int port;
    
      public SampleServer(SSLContext sslContext, String root, int port) {
        this.sslContext = sslContext;
        this.root = root;
        this.port = port;
      }
    
      public void run() throws IOException {
        MockWebServer server = new MockWebServer();
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Jan 02 02:50:44 GMT 2019
    - 4.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Huffman.kt

          sink.writeByte(node.symbol)
          accumulatorBitCount -= node.terminalBitCount
          node = root
        }
      }
    
      private fun addCode(
        symbol: Int,
        code: Int,
        codeBitCount: Int,
      ) {
        val terminal = Node(symbol, codeBitCount)
    
        var accumulatorBitCount = codeBitCount
        var node = root
        while (accumulatorBitCount > 8) {
          accumulatorBitCount -= 8
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

      }
    
      @Test
      fun ecdsaSignedByRsa() {
        val root =
          HeldCertificate.Builder()
            .certificateAuthority(0)
            .rsa2048()
            .build()
        val leaf =
          HeldCertificate.Builder()
            .certificateAuthority(0)
            .ecdsa256()
            .signedBy(root)
            .build()
        assertThat(root.certificate.sigAlgName).isEqualTo("SHA256WITHRSA", ignoreCase = true)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  6. regression-test/src/androidTest/java/okhttp/regression/IssueReproductionTest.java

    @RunWith(AndroidJUnit4.class)
    public class IssueReproductionTest {
      @Test public void getFailsWithoutAdditionalCert() throws IOException {
        OkHttpClient client = new OkHttpClient();
    
        sendRequest(client, "https://google.com/robots.txt");
      }
    
      private void sendRequest(OkHttpClient client, String url) throws IOException {
        Request request = new Request.Builder()
                .url(url)
                .build();
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jul 26 06:37:08 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  7. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt

      @Test
      fun testHttp2() {
        val client = HttpAsyncClients.createHttp2Default()
    
        client.use { client ->
          client.start()
          val request = SimpleHttpRequests.get("https://google.com/robots.txt")
          val response = client.execute(request, LoggingCallback).get()
    
          println("Protocol ${response.version}")
          println("Response ${response.code}")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. deploy_website.sh

    # Move working directory into temp folder
    cd $DIR
    
    # Generate the API docs
    ./gradlew dokkaHtmlMultiModule
    
    mv ./build/dokka/htmlMultiModule docs/5.x
    
    # Copy in special files that GitHub wants in the project root.
    cat README.md | grep -v 'project website' > docs/index.md
    cp CHANGELOG.md docs/changelogs/changelog.md
    cp CONTRIBUTING.md docs/contribute/contributing.md
    
    # Build the site and push the new files up to GitHub
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Nov 20 15:26:12 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/OpenJSSETest.kt

        assertEquals(listOf("TLSv1.3", "TLSv1.2"), s.enabledProtocols.toList())
      }
    
      @Test
      @Disabled
      fun testMozilla() {
        assumeNetwork()
    
        val request = Request.Builder().url("https://mozilla.org/robots.txt").build()
    
        client.newCall(request).execute().use {
          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
          assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        }
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/OkHttp.kt

       * custom builds of OkHttp please include a qualifier your version name, like "4.7.0-mycompany.3".
       * The version string is configured in the root project's `build.gradle`.
       *
       * Note that OkHttp's runtime version may be different from the version specified in your
       * project's build file due to the dependency resolution features of your build tool.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.6K bytes
    - Viewed (1)
Back to top