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
import{request,setGlobalAgent,ProxyAgent}from'undici'setGlobalDispatcher(newProxyAgent('https://my.proxy.agent/'))const{
statusCode,
headers,
trailers,
body
// send the request via the https://my.proxy.agent/ HTTP proxy}=awaitrequest('http://localhost:3000/foo')console.log('response received',statusCode)console.log('headers',headers)forawait(constdataofbody){console.log('data',data)}console.log('trailers',trailers)
Here is some example call
Follow up from #568
The text was updated successfully, but these errors were encountered: