blob: cfad5f1918b7eee9656376c76f2e83abdfefab8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_TOOLS_QUIC_SPDY_UTILS_H_
#define NET_TOOLS_QUIC_SPDY_UTILS_H_
#include <string>
#include "net/spdy/spdy_framer.h"
#include "net/spdy/spdy_header_block.h"
#include "net/spdy/spdy_protocol.h"
#include "net/tools/balsa/balsa_headers.h"
namespace net {
namespace tools {
class SpdyUtils {
public:
static std::string SerializeRequestHeaders(
const BalsaHeaders& request_headers);
static std::string SerializeResponseHeaders(
const BalsaHeaders& response_headers);
static bool FillBalsaRequestHeaders(const SpdyHeaderBlock& header_block,
BalsaHeaders* request_headers);
static bool FillBalsaResponseHeaders(const SpdyHeaderBlock& header_block,
BalsaHeaders* response_headers);
static SpdyHeaderBlock RequestHeadersToSpdyHeaders(
const BalsaHeaders& request_headers);
static SpdyHeaderBlock ResponseHeadersToSpdyHeaders(
const BalsaHeaders& response_headers);
static std::string SerializeUncompressedHeaders(
const SpdyHeaderBlock& headers);
};
} // namespace tools
} // namespace net
#endif // NET_TOOLS_QUIC_SPDY_UTILS_H_
|