Patch Changes
-
Use HTTP/2
:authoritybeforeHostwhen constructing request URLs. Requests whoseHostand:authorityidentify different hosts now receive a 400 response by default fromcreateRequestListener(), with custom responses supported throughonError. Equivalent hostnames and default ports remain accepted. -
createRequestListener()now accepts request-only handlers separately from handlers that read client address information, so handlers such asrouter.fetchcan be passed directly. -
Declare package modules as side-effect-free.