File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ struct ControlPlaneRequestEncoder: _EmittingChannelHandler {
93
93
extension String {
94
94
static let CRLF : String = " \r \n "
95
95
96
- static let userAgent = " Swift-Lambda/2.0 "
96
+ static let userAgent = " Swift-Lambda/ \( Version . current ) "
97
97
static let userAgentHeader : String = " user-agent: \( userAgent) \r \n "
98
98
static let unhandledErrorHeader : String = " lambda-runtime-function-error-type: Unhandled \r \n "
99
99
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the SwiftAWSLambdaRuntime open source project
4
+ //
5
+ // Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
15
+ /// Library version of the AWS Lambda Runtime.
16
+ /// This is used in the User Agent header when making requests to the AWS Lambda data Plane.
17
+ package enum Version {
18
+ /// The current version of the AWS Lambda Runtime.
19
+ public static let current = " 2.0 "
20
+ }
You can’t perform that action at this time.
0 commit comments