While putting my slides for PPW together, I realized that p6sgix.protocol.upgrade probably makes more sense as a junction than anything else. If it's just a list, the most obvious Perl 6 way to test for it is to convert it to a junction:
if any(|%env<p6sgix.protocol.upgrade>) ~~ 'h2c' { ... }
Seems like we could skip the conversion if this were already a junction.
While putting my slides for PPW together, I realized that
p6sgix.protocol.upgrade
probably makes more sense as a junction than anything else. If it's just a list, the most obvious Perl 6 way to test for it is to convert it to a junction:Seems like we could skip the conversion if this were already a junction.