node.js - How to change the AWS node client user agent? -


i'm using node aws-sdk package , need send custom user agent in s3 requests in order identify process in console log.

i've seen method in java sdk can't see similar in node package.

is there way easily?

after browsing in source code found undocumented option set user agent: customuseragent

const options = { customuseragent: 'my-process-name' }; const client  = new aws.s3(options); 

Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -