Escape the each pair according to https://tools.ietf.org/html/rfc5234 and join the pair with pattern name/version
.
User agent name may include prefix like md/
, api/
, os/
etc., we should not escape the /
after the prefix.
Build user agent header sections from:
customUserAgent
client config;x-amz-user-agent
header for ALL the
runtimes.
Please note that any override to the user-agent
or x-amz-user-agent
header
in the HTTP request is discouraged. Please use customUserAgent
client
config or middleware setting the userAgent
context to generate desired user
agent.
@aws-sdk/middleware-user-agent