platformUserAgent constant

String const platformUserAgent

The user agent header for the current platform.

This differs between Web and all other platforms since on Web, it is not possible to manually set the User-Agent header as it is on other platforms. On the Web, AWS expects the X-Amz-User-Agent header to be used in its place.

Implementation

static const platformUserAgent = zIsWeb ? amzUserAgent : userAgent;