Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios forward

  const axiosResponse = await axios({
    url: serverUrl + req.url,
    responseType: 'stream'
  })

  axiosResponse.data.pipe(res)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #axios
ADD COMMENT
Topic
Name
8+9 =