void OnBeginMetadataForStream(Http2StreamId /*stream_id*/, size_t /*payload_length*/) override {
Http1StreamEncoderOptionsOptRef http1StreamEncoderOptions() override { return absl::nullopt; }
void addCallbacks(StreamCallbacks& callbacks) override { addCallbacksHelper(callbacks); }
void removeCallbacks(StreamCallbacks& callbacks) override { removeCallbacksHelper(callbacks); }
Buffer::BufferMemoryAccountSharedPtr account() const override { return buffer_memory_account_; }
// If the send buffer encounters watermark callbacks, propagate this information to the streams.
// NOTE: Always use non debug nullptr checks against the return value of this function. There are
virtual absl::optional<int> checkHeaderNameForUnderscores(absl::string_view /* header_name */) {
// Set if the type of frame that is about to be sent is PING or SETTINGS with the ACK flag set, or
// this changes in the future. Also it is important that onSend does not do partial writes, as the
// Streams that are pending deferred reset. Using an ordered map provides determinism in the rare
// case where there are multiple streams waiting for deferred reset. The stream id is also used to
// remove streams from the map when they are closed in order to avoid calls to resetStreamWorker
// ServerConnectionImpl objects is called only when processing data from the downstream client in