@@ -21,7 +21,7 @@ import NIOFoundationCompat
21
21
22
22
// MARK: - LambdaHandler Codable support
23
23
24
- /// Implementation of a `ByteBuffer` to `Event` decoding.
24
+ /// Implementation of `ByteBuffer` to `Event` decoding.
25
25
@available ( macOS 12 , iOS 15 , tvOS 15 , watchOS 8 , * )
26
26
extension LambdaHandler where Event: Decodable {
27
27
@inlinable
@@ -30,7 +30,7 @@ extension LambdaHandler where Event: Decodable {
30
30
}
31
31
}
32
32
33
- /// Implementation of `Output` to `ByteBuffer` encoding.
33
+ /// Implementation of `Output` to `ByteBuffer` encoding.
34
34
@available ( macOS 12 , iOS 15 , tvOS 15 , watchOS 8 , * )
35
35
extension LambdaHandler where Output: Encodable {
36
36
@inlinable
@@ -40,7 +40,7 @@ extension LambdaHandler where Output: Encodable {
40
40
}
41
41
42
42
/// Default `ByteBuffer` to `Event` decoder using Foundation's `JSONDecoder`.
43
- /// Advanced users that want to inject their own codec can do it by overriding these functions.
43
+ /// Advanced users who want to inject their own codec can do it by overriding these functions.
44
44
@available ( macOS 12 , iOS 15 , tvOS 15 , watchOS 8 , * )
45
45
extension LambdaHandler where Event: Decodable {
46
46
public var decoder : LambdaCodableDecoder {
@@ -49,7 +49,7 @@ extension LambdaHandler where Event: Decodable {
49
49
}
50
50
51
51
/// Default `Output` to `ByteBuffer` encoder using Foundation's `JSONEncoder`.
52
- /// Advanced users that want to inject their own codec can do it by overriding these functions.
52
+ /// Advanced users who want to inject their own codec can do it by overriding these functions.
53
53
@available ( macOS 12 , iOS 15 , tvOS 15 , watchOS 8 , * )
54
54
extension LambdaHandler where Output: Encodable {
55
55
public var encoder : LambdaCodableEncoder {
@@ -59,15 +59,15 @@ extension LambdaHandler where Output: Encodable {
59
59
60
60
// MARK: - EventLoopLambdaHandler Codable support
61
61
62
- /// Implementation of a `ByteBuffer` to `Event` decoding.
62
+ /// Implementation of `ByteBuffer` to `Event` decoding.
63
63
extension EventLoopLambdaHandler where Event: Decodable {
64
64
@inlinable
65
65
public func decode( buffer: ByteBuffer ) throws -> Event {
66
66
try self . decoder. decode ( Event . self, from: buffer)
67
67
}
68
68
}
69
69
70
- /// Implementation of `Output` to `ByteBuffer` encoding.
70
+ /// Implementation of `Output` to `ByteBuffer` encoding.
71
71
extension EventLoopLambdaHandler where Output: Encodable {
72
72
@inlinable
73
73
public func encode( value: Output , into buffer: inout ByteBuffer ) throws {
0 commit comments