@@ -576,7 +576,7 @@ private final class LambdaChannelHandler<Delegate: LambdaChannelHandlerDelegate>
576
576
. connected( _, . sentResponse) :
577
577
// The final response has already been sent. The only way to report the unhandled error
578
578
// now is to log it. Normally this library never logs higher than debug, we make an
579
- // exception here, as there is no other way of reporting the error otherwise .
579
+ // exception here, as there is no other way of reporting the error.
580
580
self . logger. error (
581
581
" Unhandled error after stream has finished " ,
582
582
metadata: [
@@ -662,12 +662,12 @@ private final class LambdaChannelHandler<Delegate: LambdaChannelHandlerDelegate>
662
662
) async throws {
663
663
664
664
if let requestID = sendHeadWithRequestID {
665
- // TODO: This feels super expensive. We should be able to make this cheaper. requestIDs are fixed length
665
+ // TODO: This feels super expensive. We should be able to make this cheaper. requestIDs are fixed length.
666
666
let url = Consts . invocationURLPrefix + " / " + requestID + Consts. postResponseURLSuffix
667
667
668
668
var headers = self . streamingHeaders
669
669
if await self . delegate. hasStreamingCustomHeaders ( isolation: #isolation) {
670
- // this headers is required by Function URL when the user sends custom status code or headers
670
+ // this header is required by Function URL when the user sends custom status code or headers
671
671
headers. add ( name: " Content-Type " , value: " application/vnd.awslambda.http-integration-response " )
672
672
}
673
673
let httpRequest = HTTPRequestHead (
@@ -692,11 +692,11 @@ private final class LambdaChannelHandler<Delegate: LambdaChannelHandlerDelegate>
692
692
context: ChannelHandlerContext
693
693
) {
694
694
if let requestID = sendHeadWithRequestID {
695
- // TODO: This feels quite expensive. We should be able to make this cheaper. requestIDs are fixed length
695
+ // TODO: This feels quite expensive. We should be able to make this cheaper. requestIDs are fixed length.
696
696
let url = " \( Consts . invocationURLPrefix) / \( requestID) \( Consts . postResponseURLSuffix) "
697
697
698
698
// If we have less than 6MB, we don't want to use the streaming API. If we have more
699
- // than 6MB we must use the streaming mode.
699
+ // than 6MB, we must use the streaming mode.
700
700
var headers : HTTPHeaders !
701
701
if byteBuffer? . readableBytes ?? 0 < 6_000_000 {
702
702
headers = self . defaultHeaders
0 commit comments