ApiGatewayRequestHandler

org.encalmo.lambda.ApiGatewayRequestHandler
trait ApiGatewayRequestHandler[ApplicationContext]

Abstract base class of an http request handler.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Keywords
  • no keywords
  • final
  • inline

Type members

Types

type Resource = (String, Regex)

Value members

Abstract methods

def handleRequest(request: ApiGatewayRequest)(using LambdaContext, ApplicationContext): Option[ApiGatewayResponse]

Concrete methods

final def createApiGatewaySuccessResponse(body: String): ApiGatewayResponse
final def createApiGatewaySuccessResponse(json: Value): ApiGatewayResponse
final def returnErrorResponseWhenException(e: Throwable): ApiGatewayResponse

Extensions

Extensions

extension (r: Resource)
inline def httpMethod: String
inline def pathRegex: Regex
inline def unapplySeq(request: ApiGatewayRequest): Option[List[String]]