Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for GetSink (0.14 sec)

  1. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

            Header("content-type", "text/plain"),
          )
        stream.writeHeaders(
          responseHeaders = responseHeaders,
          outFinished = false,
          flushHeaders = false,
        )
        val out = stream.getSink().buffer()
        out.writeUtf8("Not found: $path")
        out.close()
      }
    
      private fun serveDirectory(
        stream: Http2Stream,
        files: Array<File>,
      ) {
        val responseHeaders =
          listOf(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/RealStream.kt

    internal class RealStream(
      private val http2Stream: Http2Stream,
    ) : Stream {
      override val requestBody = http2Stream.getSource().buffer()
      override val responseBody = http2Stream.getSink().buffer()
    
      override fun cancel() {
        http2Stream.closeLater(ErrorCode.CANCEL)
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Dec 31 18:24:52 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        val stream2 = connection.newStream(headerEntries("b", "banana"), true)
        connection.writePingAndAwaitPong() // Ensure the GO_AWAY that resets stream2 has been received.
        val sink1 = stream1.getSink().buffer()
        val sink2 = stream2.getSink().buffer()
        sink1.writeUtf8("abc")
        assertFailsWith<IOException> {
          sink2.writeUtf8("abc")
          sink2.flush()
        }.also { expected ->
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

        } else {
          Protocol.HTTP_2
        }
    
      @Volatile
      private var canceled = false
    
      override fun createRequestBody(
        request: Request,
        contentLength: Long,
      ): Sink {
        return stream!!.getSink()
      }
    
      override fun writeRequestHeaders(request: Request) {
        if (stream != null) return
    
        val hasRequestBody = request.body != null
        val requestHeaders = http2HeadersList(request)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. pkg/log/logr.go

    	zlog := &zapLogger{
    		l: zl.l,
    	}
    
    	return logr.New(zlog)
    }
    
    func (zl *zapLogger) WithValues(keysAndValues ...any) logr.LogSink {
    	return NewLogrAdapter(zl.l.WithLabels(keysAndValues...)).GetSink()
    }
    
    func (zl *zapLogger) WithName(string) logr.LogSink {
    	return zl
    }
    
    // NewLogrAdapter creates a new logr.Logger using the given Zap Logger to log.
    func NewLogrAdapter(l *Scope) logr.Logger {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc

      // If op is a `tf_executor.NextIteration.Source`, visit its associated
      // `tf_executor.NextIteration.Sink` op.
      if (auto source_op = llvm::dyn_cast<NextIterationSourceOp>(op)) {
        Operation* sink_op = source_op.GetSink().getOperation();
        if (reachable_ops->insert(sink_op).second) ops_to_visit->push_back(sink_op);
      }
    }
    
    GraphPruningPass::GraphPruningPass(
        llvm::ArrayRef<std::string> ops_to_preserve) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

      // pair has matching devices or no devices.
      if (auto source = llvm::dyn_cast<tf_executor::NextIterationSourceOp>(op)) {
        return ops_have_same_device(source, source.GetSink());
      } else if (auto sink = llvm::dyn_cast<tf_executor::NextIterationSinkOp>(op)) {
        return ops_have_same_device(sink.GetSource(), sink);
      }
    
      return llvm::isa<tf_executor::EnterOp, tf_executor::ExitOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go

    				t.Errorf("managerImpl.processShutdownEvent() error = %v, wantErr %v", err, tt.wantErr)
    			}
    
    			underlier, ok := logger.GetSink().(ktesting.Underlier)
    			if !ok {
    				t.Fatalf("Should have had a ktesting LogSink, got %T", logger.GetSink())
    			}
    
    			log := underlier.GetBuffer().String()
    			if !strings.Contains(log, tt.expectedOutputContains) {
    				// Log will be shown on failure. To see it
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td

          $_state.types = { result_type, token_type, control_type };
          $_state.attributes.append(attributes.begin(), attributes.end());
        }]>
       ];
    
      let extraClassDeclaration = [{
        NextIterationSinkOp GetSink() {
          return cast<NextIterationSinkOp>(*getToken().user_begin());
        }
      }];
    
      let assemblyFormat = "`:` type($output) attr-dict";
      let hasCustomAssemblyFormat = 0;
    }
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 22K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      /**
       * Returns a sink that can be used to write data to the peer.
       *
       * @throws IllegalStateException if this stream was initiated by the peer and a [writeHeaders] has
       *     not yet been sent.
       */
      fun getSink(): Sink {
        this.withLock {
          check(hasResponseHeaders || isLocallyInitiated) {
            "reply before requesting the sink"
          }
        }
        return sink
      }
    
      /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top