Skip to content

Commit

Permalink
Merge pull request #201 from heaven-born/master
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmsamson authored Apr 27, 2023
2 parents fbb75d0 + 0348532 commit 2d35de1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ final case class APIGatewayV2HttpEvent(
routeKey: String,
rawPath: String,
rawQueryString: String,
cookies: List[String],
cookies: Option[List[String]],
headers: Map[String, String],
queryStringParameters: Map[String, String],
pathParameters: Map[String, String],
stageVariables: Map[String, String],
queryStringParameters: Option[Map[String, String]],
pathParameters: Option[Map[String, String]],
stageVariables: Option[Map[String, String]],
body: String,
isBase64Encoded: Boolean,
requestContext: APIGatewayV2HTTPRequestContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package zio.lambda.response
import zio.json._

final case class APIGatewayV2HTTPResponse(
statusCode: Int,
headers: Map[String, String],
multiValueHeaders: Map[String, List[String]],
cookies: List[String],
body: String,
isBase64Encoded: Boolean
statusCode: Int = 200,
headers: Map[String, String] = Map(),
multiValueHeaders: Map[String, List[String]] = Map(),
cookies: List[String] = List(),
isBase64Encoded: Boolean = false
)

object APIGatewayV2HTTPResponse {
Expand Down

0 comments on commit 2d35de1

Please sign in to comment.