This source file includes following definitions.
- SerializeUncompressedHeaders
#include "net/quic/spdy_utils.h"
#include "base/memory/scoped_ptr.h"
#include "net/spdy/spdy_frame_builder.h"
#include "net/spdy/spdy_framer.h"
#include "net/spdy/spdy_protocol.h"
using std::string;
namespace net {
string SpdyUtils::SerializeUncompressedHeaders(const SpdyHeaderBlock& headers) {
int length = SpdyFramer::GetSerializedLength(SPDY3, &headers);
SpdyFrameBuilder builder(length);
SpdyFramer::WriteHeaderBlock(&builder, SPDY3, &headers);
scoped_ptr<SpdyFrame> block(builder.take());
return string(block->data(), length);
}
}