| 115 | int end_index() const { return start_index() + _header_queue.size(); } |
| 116 | |
| 117 | static inline size_t HeaderSize(const Header& h) { |
| 118 | // https://tools.ietf.org/html/rfc7541#section-4.1 |
| 119 | return h.name.size() + h.value.size() + 32; |
| 120 | } |
| 121 | |
| 122 | void PopHeader() { |
| 123 | DCHECK(!empty()); |