blob: 3ed13dcf46e45560b1e59cfc08008493a3aec2f1 [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[name] = value;
}
return block;
}
} // namespace adapter
} // namespace http2