blob: ed0e6f618b3ceb63e1f947447c69fddb1e56b679 [file] [log] [blame]
#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