The parts of a request Antlion reads. A WHATWG Request already is one.
On Node's own http (and Express, Fastify, Koa), build headers from
req.headersDistinct, not req.headers: Node keeps only the first of two
Authorization headers in req.headers, so a duplicate would never be
seen. url may be the request path (req.url) or an absolute URL; only
its path is used, and the origin always comes from the profile.
The parts of a request Antlion reads. A WHATWG
Requestalready is one.On Node's own
http(and Express, Fastify, Koa), buildheadersfromreq.headersDistinct, notreq.headers: Node keeps only the first of twoAuthorizationheaders inreq.headers, so a duplicate would never be seen.urlmay be the request path (req.url) or an absolute URL; only its path is used, and the origin always comes from the profile.