blob: 37a53898d013d6d675de78471a1737c9bc91dcff [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "quic/core/http/quic_server_initiated_spdy_stream.h"
#include "quic/core/quic_error_codes.h"
namespace quic {
void QuicServerInitiatedSpdyStream::OnBodyAvailable() {
QUIC_BUG(Body received in QuicServerInitiatedSpdyStream)
<< "Received body data in QuicServerInitiatedSpdyStream.";
"Received HTTP/3 body data in a server-initiated bidirectional stream");
size_t QuicServerInitiatedSpdyStream::WriteHeaders(
spdy::SpdyHeaderBlock /*header_block*/,
bool /*fin*/,
QuicReferenceCountedPointer<QuicAckListenerInterface> /*ack_listener*/) {
QUIC_BUG(Writing headers in QuicServerInitiatedSpdyStream)
<< "Attempting to write headers in QuicServerInitiatedSpdyStream";
"Attempted to send HTTP/3 headers in a server-initiated "
"bidirectional stream");
return 0;
void QuicServerInitiatedSpdyStream::OnInitialHeadersComplete(
bool /*fin*/,
size_t /*frame_len*/,
const QuicHeaderList& /*header_list*/) {
QUIC_PEER_BUG(Reading headers in QuicServerInitiatedSpdyStream)
<< "Attempting to receive headers in QuicServerInitiatedSpdyStream";
"Received HTTP/3 headers in a server-initiated "
"bidirectional stream without an extension setting "
"explicitly allowing those");
} // namespace quic