Skip to content

src: micro-optimize ALPN negotiation

99 out of a 100 times (conservative estimate!) the negotiated protocol will be either "h2" or "http/1.1" so reuse an existing JS string for those instead of creating a new one every time.

Merge request reports

Loading