| 263 | } |
| 264 | |
| 265 | bool |
| 266 | http2_write_goaway(const Http2Goaway &goaway, IOVec iov) |
| 267 | { |
| 268 | byte_pointer ptr(iov.iov_base); |
| 269 | |
| 270 | if (unlikely(iov.iov_len < HTTP2_GOAWAY_LEN)) { |
| 271 | return false; |
| 272 | } |
| 273 | |
| 274 | write_and_advance(ptr, goaway.last_streamid); |
| 275 | write_and_advance(ptr, static_cast<uint32_t>(goaway.error_code)); |
| 276 | |
| 277 | return true; |
| 278 | } |
| 279 | |
| 280 | bool |
| 281 | http2_write_window_update(const uint32_t new_size, const IOVec &iov) |
no test coverage detected