Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 200 for Close (0.14 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          MockResponse.Builder()
            .body("Hello!")
            .setHeader("Content-Type", PLAIN)
            .build(),
        )
        val response = client.newCall(request().build()).execute()
        response.body.close()
        applicationLogs
          .assertLogEqual("--> GET $url")
          .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms, 6-byte body\)"""))
          .assertNoMoreLogs()
        networkLogs
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  2. docs/de/docs/reference/uploadfile.md

            members:
                - file
                - filename
                - size
                - headers
                - content_type
                - read
                - write
                - seek
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:17:09 GMT 2024
    - 495 bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt

      @BeforeEach
      fun setUp() {
        file = File(tempDir, "test")
        randomAccessFile = RandomAccessFile(file, "rw")
      }
    
      @AfterEach
      fun tearDown() {
        randomAccessFile!!.close()
      }
    
      @Test
      fun read() {
        write("Hello, World".encodeUtf8())
        val operator =
          FileOperator(
            randomAccessFile!!.getChannel(),
          )
        val buffer = Buffer()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

            // Write a frame.
            val length = (end - start).toInt()
            outputStream.write(outBytes, start.toInt(), length)
    
            // If the last frame was truncated, immediately close the connection.
            if (truncated) {
              socket.close()
            }
          } else {
            // read a frame
            val inFrame = InFrame(i, reader)
            reader.nextFrame(false, inFrame)
            inFrames.add(inFrame)
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/WebSocket.kt

       * message.
       *
       * This method returns true if the message was enqueued. Messages that would overflow the outgoing
       * message buffer will be rejected and trigger a [graceful shutdown][close] of this web socket.
       * This method returns false in that case, and in any other case where this web socket is closing,
       * closed, or canceled.
       *
       * This method returns immediately.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. docs/features/interceptors.md

    Request request = new Request.Builder()
        .url("http://www.publicobject.com/helloworld.txt")
        .header("User-Agent", "OkHttp Example")
        .build();
    
    Response response = client.newCall(request).execute();
    response.body().close();
    ```
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

     *     [chunked][newChunkedSink].
     *  3. Write to and then close that sink.
     *  4. [Read response headers][readResponseHeaders].
     *  5. Open a source to read the response body. Either [fixed-length][newFixedLengthSource],
     *     [chunked][newChunkedSource] or [unknown][newUnknownLengthSource].
     *  6. Read from and close that source.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/DuplexTest.kt

            .isEqualTo("response D")
          requestBody.writeUtf8("request E\n")
          requestBody.flush()
          assertThat(responseBody.readUtf8Line())
            .isEqualTo("response F")
          requestBody.close()
          assertThat(responseBody.readUtf8Line()).isNull()
        }
        body.awaitSuccess()
      }
    
      @Test
      fun trueDuplexServerWritesFirst() {
        enableProtocol(Protocol.HTTP_2)
        val body =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt

      }
    
      @Test fun `deflate after close`() {
        val deflater = MessageDeflater(true)
        deflater.close()
    
        assertFailsWith<Exception> {
          deflater.deflate("Hello deflate!".encodeUtf8())
        }
      }
    
      @Test fun `inflate after close`() {
        val inflater = MessageInflater(false)
    
        inflater.close()
    
        assertFailsWith<Exception> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 5K bytes
    - Viewed (0)
  10. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

            }
        }
    
        private
        fun openJarFile(file: File) =
            openJars.computeIfAbsent(file, ::JarFile)
    
        override fun close() {
            openJars.values.forEach(JarFile::close)
        }
    }
    
    
    /**
     * See https://docs.oracle.com/javase/8/docs/technotes/tools/findingclasses.html#userclass
     */
    private
    val File.isClassPathArchive
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Sat Sep 30 16:17:27 GMT 2023
    - 6.1K bytes
    - Viewed (0)
Back to top