The file you'd like to download
The URL to which you'd like to upload the downloaded content (using an HTTP POST request)
async
params => {
}
const stream = require('stream');
const { promisify } = require('util');
const fs = require('fs');
const got = require('got');
const pipeline = promisify(stream.pipeline);
await pipeline(
got.stream(params.downloadURL),
got.stream.post(params.uploadURL)
);