&& %env<HTTP_UPGRADE> eq 'h2c' && any(|%env<p6w.protocol.upgrade>) ~~ 'h2c' { 101, [ P6SGIx-Upgrade => 'h2c' ], [] } if %env<PATH_INFO> eq '/index.html' { if %env<SERVER_PROTOCOL> eq 'HTTP/2' { %env<p6w.h2c.push-promise>.emit([ ':method' => 'GET', ':scheme' => 'http', ':path' => 'foo.png', ]); } 200, [ 'Content-Type' => 'text/html' ], ... } elsif %env<PATH_INFO> eq '/foo.png' { 200, [ 'Content-Type' => 'image/png' ], ... } 33