OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_HTTP2_HPACK_TOOLS_HPACK_EXAMPLE_H_ |
| 6 #define NET_HTTP2_HPACK_TOOLS_HPACK_EXAMPLE_H_ |
| 7 |
| 8 // Parses HPACK examples in the format seen in the HPACK specification, |
| 9 // RFC 7541. For example: |
| 10 // |
| 11 // 10 | == Literal never indexed == |
| 12 // 08 | Literal name (len = 8) |
| 13 // 7061 7373 776f 7264 | password |
| 14 // 06 | Literal value (len = 6) |
| 15 // 7365 6372 6574 | secret |
| 16 // | -> password: secret |
| 17 // |
| 18 // (excluding the leading "//"). |
| 19 |
| 20 #include <string> |
| 21 |
| 22 #include "base/strings/string_piece.h" |
| 23 |
| 24 namespace net { |
| 25 namespace test { |
| 26 |
| 27 std::string HpackExampleToStringOrDie(base::StringPiece example); |
| 28 |
| 29 } // namespace test |
| 30 } // namespace net |
| 31 |
| 32 #endif // NET_HTTP2_HPACK_TOOLS_HPACK_EXAMPLE_H_ |
OLD | NEW |