You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any better way to disable HTTP keep-alive? I mean "better" is that it is clear to understand for everyone, new Agent({pipelining: 0}) is not clear for me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
undici.request()
requests withconnection: keep-alive
by default. Specifyingheaders: { 'connection': 'close' }
causes "InvalidArgumentError: invalid connection header" error.I found
dispatcher: new undici.Agent({pipelining: 0})
disables keep-alive as follows.Is there any better way to disable HTTP keep-alive? I mean "better" is that it is clear to understand for everyone,
new Agent({pipelining: 0})
is not clear for me.Beta Was this translation helpful? Give feedback.
All reactions