Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jan 29, 2024
1 parent b059347 commit c7dc7a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/HummingbirdLambda/APIGatewayLambda.swift
Expand Up @@ -25,6 +25,9 @@ import NIOHTTP1
/// ```swift
/// struct MyLambda: HBAPIGatewayLambda {
/// typealias Context = MyLambdaRequestContext
///
/// init(context: LambdaInitializationContext) {}
///
/// /// build responder that will create a response from a request
/// func buildResponder() -> some HBResponder<Context> {
/// let router = HBRouter(context: Context.self)
Expand Down
3 changes: 3 additions & 0 deletions Sources/HummingbirdLambda/APIGatewayV2Lambda.swift
Expand Up @@ -25,6 +25,9 @@ import NIOHTTP1
/// ```swift
/// struct MyLambda: HBAPIGatewayLambda {
/// typealias Context = MyLambdaRequestContext
///
/// init(context: LambdaInitializationContext) {}
///
/// /// build responder that will create a response from a request
/// func buildResponder() -> some HBResponder<Context> {
/// let router = HBRouter(context: Context.self)
Expand Down
3 changes: 3 additions & 0 deletions Sources/HummingbirdLambda/Lambda.swift
Expand Up @@ -29,6 +29,9 @@ import NIOPosix
/// typealias Event = APIGatewayRequest
/// typealias Output = APIGatewayResponse
/// typealias Context = MyLambdaRequestContext // must conform to `HBLambdaRequestContext`
///
/// init(context: LambdaInitializationContext) {}
///
/// /// build responder that will create a response from a request
/// func buildResponder() -> some HBResponder<Context> {
/// let router = HBRouter(context: Context.self)
Expand Down

0 comments on commit c7dc7a8

Please sign in to comment.