[英]Stream to a URL with node.js
I know that a file can be transferred using a post request (say using node-fetch
).我知道可以使用发布请求(例如使用
node-fetch
)来传输文件。 How do I go about streaming a file (as input is piped into it) in node.js
to a URL (say http://example.com/listen ) where a service will process the incoming stream?我该如何将
node.js
的文件(作为输入管道输入)传输到URL(例如http://example.com/listen ),服务将在其中处理传入流? Is there a simple library which offers a pipe to address
functionality?是否有一个简单的库提供
pipe to address
功能的pipe to address
?
I know that a file can be transferred using a post request (say using node-fetch
).我知道可以使用发布请求(例如使用
node-fetch
)来传输文件。 How do I go about streaming a file (as input is piped into it) in node.js
to a URL (say http://example.com/listen ) where a service will process the incoming stream?我该如何将
node.js
的文件(作为输入管道输入)传输到URL(例如http://example.com/listen ),服务将在其中处理传入流? Is there a simple library which offers a pipe to address
functionality?是否有一个简单的库提供
pipe to address
功能的pipe to address
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.