minio-js icon indicating copy to clipboard operation
minio-js copied to clipboard

Documentation on how to use `transport` parameter

Open a3957273 opened this issue 2 years ago • 1 comments

Is it possible to use an httpsAgent as a custom transport to Minio? It seems as if Minio takes a transport as a string, but it isn't documented anywhere. What does this transport represent?

Is it possible to use our own agents, e.g:

const client = new Minio.Client({
  ...someConfig,
   transport: new https.Agent({})
})

At the moment, this breaks with request not being defined on agent.

a3957273 avatar May 12 '22 17:05 a3957273

based on useSSL: true, the transport would be http or https internally. is there a specific requirement for something more ?

prakashsvmx avatar May 13 '22 07:05 prakashsvmx