transformRequest mutation would be more useful if asynchronous work could be done before sending the request. For example, aws4fetch could be used as a request interceptor and make form a nice pluggable s3 interface. Note signing requests use subtle.crypto and introduces async execution: https://github.com/mhart/aws4fetch#promiserequest-awssigninput-init, I can expect quite a few auth header attachments might want to be able to use subtle.crypto and thus an async capable transformRequest function seems a generally useful ask.
transformRequest
mutation would be more useful if asynchronous work could be done before sending the request. For example,aws4fetch
could be used as a request interceptor and make form a nice pluggable s3 interface. Note signing requests use subtle.crypto and introduces async execution: https://github.com/mhart/aws4fetch#promiserequest-awssigninput-init, I can expect quite a few auth header attachments might want to be able to use subtle.crypto and thus an async capabletransformRequest
function seems a generally useful ask.