Open amiller-gh opened 3 years ago
Hi @amiller-gh,
This use case makes perfect sense. I'm currently too busy to currently implement this. I'll gladly accept your offer to help on this one. Please submit a PR whenever you're got time.
Cheers,
Nic
Sounds good!
Actually, since you're using node-fetch under the hood, and you just pass the payload directly to the body
options... this may already work out of the box. Will test it out and let you know. I think the only problem will be with setting Content-Length
to `payload.length
a few lines above.
https://github.com/nicolasdao/google-cloud-bucket/blob/master/src/gcp.js#L89
The module has an interface for streaming reads:
It would be great to have an interface for streaming writes too!
Any interest in adding the feature? Happy to implement.