#include "http2/adapter/oghttp2_util.h" | |
namespace http2 { | |
namespace adapter { | |
spdy::SpdyHeaderBlock ToHeaderBlock(absl::Span<const Header> headers) { | |
spdy::SpdyHeaderBlock block; | |
for (const Header& header : headers) { | |
absl::string_view name = GetStringView(header.first).first; | |
absl::string_view value = GetStringView(header.second).first; | |
block.AppendValueOrAddHeader(name, value); | |
} | |
return block; | |
} | |
} // namespace adapter | |
} // namespace http2 |