ApiGatewayRequest

org.encalmo.lambda.ApiGatewayRequest
See theApiGatewayRequest companion object
final case class ApiGatewayRequest(httpMethod: String, resource: String, path: String, body: String, isBase64Encoded: Boolean, headers: Map[String, String], stageVariables: Map[String, String], queryStringParameters: Map[String, String], requestContext: Map[String, Value])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

inline def formDebugString: String
inline def getFormField(key: String): String
inline def getFormField(key: String, defaultValue: String): String
inline def maybeFormField(key: String): Option[String]
inline def maybeHeader(name: String): Option[String]
inline def maybeHeader(name: String, defaultValue: String): String
inline def maybeStageVariable(key: String): Option[String]
inline def maybeStageVariable(key: String, defaultValue: String): String
inline def parseBodyAs[T : ReadWriter]: T
inline def passTo(host: String, debug: String => Unit): Response[String]

Send request to the target host and return response wrapped in ApiGatewayResponse.

Send request to the target host and return response wrapped in ApiGatewayResponse.

Attributes

inline def passTo(host: String, headers: Map[String, String], debug: String => Unit): Response[String]
inline def passTo(host: String, allowedHeaders: Set[String], disallowedHeaders: Set[String], customHeaders: Map[String, String], debug: String => Unit): Response[String]
final def toHttpRequest(allowedHeaders: Set[String], disallowedHeaders: Set[String]): Request[String]
inline def withHeader(name: String, value: String): ApiGatewayRequest
inline def withPath(path: String): ApiGatewayRequest
inline def withQueryParameter(name: String, value: String): ApiGatewayRequest

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product