Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for writeHeaders (0.1 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

      }
    
      @Test
      fun staticTableIndexedHeaders() {
        hpackWriter!!.writeHeaders(headerEntries(":method", "GET"))
        assertBytes(0x82)
        assertThat(hpackWriter!!.headerCount).isEqualTo(0)
        hpackWriter!!.writeHeaders(headerEntries(":method", "POST"))
        assertBytes(0x83)
        assertThat(hpackWriter!!.headerCount).isEqualTo(0)
        hpackWriter!!.writeHeaders(headerEntries(":path", "/"))
        assertBytes(0x84)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  2. cmd/object-handlers-common.go

    			// If the object ETag matches with the specified ETag.
    			writeHeaders()
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrPreconditionFailed), r.URL)
    			return true
    		}
    	}
    
    	etagMatch := opts.PreserveETag != "" && isETagEqual(objInfo.ETag, opts.PreserveETag)
    	vidMatch := opts.VersionID != "" && opts.VersionID == objInfo.VersionID
    	if etagMatch && vidMatch {
    		writeHeaders()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                try (ServletOutputStream out = response.getOutputStream(); InputStream in = curlResponse.getContentAsStream()) {
                    response.setStatus(curlResponse.getHttpStatusCode());
                    writeHeaders(response);
                    final String responseContentType = curlResponse.getHeaderValue("Content-Type");
                    if (StringUtil.isBlank(responseContentType)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Aug 15 08:29:24 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

       * @param flushHeaders true to force flush the response headers. This should be true unless the
       *     response body exists and will be written immediately.
       */
      @Throws(IOException::class)
      fun writeHeaders(
        responseHeaders: List<Header>,
        outFinished: Boolean,
        flushHeaders: Boolean,
      ) {
        lock.assertNotHeld()
    
        var flushHeaders = flushHeaders
        this.withLock {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        body.writeTo(responseBodySink)
        responseBodySink.emit()
    
        if ("chunked".equals(response.headers["Transfer-Encoding"], ignoreCase = true)) {
          writeHeaders(sink, response.trailers)
        }
      }
    
      @Throws(IOException::class)
      private fun writeHeaders(
        sink: BufferedSink,
        headers: Headers,
      ) {
        for ((name, value) in headers) {
          sink.writeUtf8(name)
          sink.writeUtf8(": ")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

      fun pushPromise(
        streamId: Int,
        promisedStreamId: Int,
        requestHeaders: List<Header>,
      ) {
        this.withLock {
          if (closed) throw IOException("closed")
          hpackWriter.writeHeaders(requestHeaders)
    
          val byteCount = hpackBuffer.size
          val length = minOf(maxFrameSize - 4L, byteCount).toInt()
          frameHeader(
            streamId = streamId,
            length = length + 4,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

          }
        }
    
        if (flushHeaders) {
          writer.flush()
        }
    
        return stream
      }
    
      @Throws(IOException::class)
      internal fun writeHeaders(
        streamId: Int,
        outFinished: Boolean,
        alternating: List<Header>,
      ) {
        writer.headers(outFinished, streamId, alternating)
      }
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

           *
           * http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-12#section-6.2.3
           */
          @Throws(IOException::class)
          fun writeHeaders(headerBlock: List<Header>) {
            if (emitDynamicTableSizeUpdate) {
              if (smallestHeaderTableSizeSetting < maxDynamicTableByteCount) {
                // Multiple dynamic table size updates!
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

          assertThat(expected.message).isEqualTo("reserved bit set: -2147483645")
        }
      }
    
      private fun literalHeaders(sentHeaders: List<Header>): Buffer {
        val out = Buffer()
        Hpack.Writer(out = out).writeHeaders(sentHeaders)
        return out
      }
    
      private fun sendHeaderFrames(
        outFinished: Boolean,
        headers: List<Header>,
      ): Buffer {
        val out = Buffer()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    		}
    	})
    
    	t.Run("Persistence", func(t *testing.T) {
    		tw := NewWriter(new(failOnceWriter))
    		if err := tw.WriteHeader(&Header{}); err != io.ErrShortWrite {
    			t.Fatalf("WriteHeader() = %v, want %v", err, io.ErrShortWrite)
    		}
    		if err := tw.WriteHeader(&Header{Name: "small.txt"}); err == nil {
    			t.Errorf("WriteHeader() = got %v, want non-nil error", err)
    		}
    		if _, err := tw.Write(nil); err == nil {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top