(opts)
| 272 | |
| 273 | |
| 274 | def h2_layer(opts): |
| 275 | tctx = _tctx() |
| 276 | tctx.client.alpn = b"h2" |
| 277 | |
| 278 | layer = http.HttpLayer(tctx, HTTPMode.regular) |
| 279 | for _ in layer.handle_event(Start()): |
| 280 | pass |
| 281 | for _ in layer.handle_event( |
| 282 | DataReceived(tctx.client, b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n") |
| 283 | ): |
| 284 | pass |
| 285 | return tctx, layer |
| 286 | |
| 287 | |
| 288 | def _h2_request(chunks): |
no test coverage detected
searching dependent graphs…