blob: 26a3fb3461c7418033805647865eb0f748e23b11 [file] [log] [blame]
#include "quiche/http2/adapter/oghttp2_util.h"
namespace http2 {
namespace adapter {
spdy::Http2HeaderBlock ToHeaderBlock(absl::Span<const Header> headers) {
spdy::Http2HeaderBlock 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