-
New function:
Wai.Handler.Hal.runWithOptions :: Options -> Application -> ProxyRequest NoAuthorizer -> ProxyResponse
. This provides a convenient way to pass customOptions
without all the bells and whistles ofrunWithContext
. -
Instead of guessing whether a given response
Content-Type
should be sent as text or base64-encoded binary,Options
now contains abinaryMediaTypes :: [MediaType]
, which lists the media types that should be base64-encoded. This should match thebinaryMediaTypes
setting you have configured on the API Gateway that integrates with your Lambda Function.See: Content type conversion in API Gateway in the Amazon API Gateway Developer Guide.
- Accidental breaking change: more elaborate
Content-Type
headers likeContent-Type: application/json; charset=utf-8
are now encoded as if they were binary payloads. This release has been deprecated. - Breaking change: add
Options
record parameter torunWithContext
,toWaiRequest
andfromWaiResponse
. - Provide a
defaultOptions
. - Make whether or not to run base64-encoding on the response body customizable
through
Options.binaryMimeType
.
- Breaking change:
toWaiRequest
now sorts request headers and query string parameters.
- Fix construction of
rawPathInfo
.
- When API Gateway sends nonsense IPs during a test invocation, sub in
127.0.0.1
instead of exploding. #3 - Removed debug
print
s left in by mistake.
- First version. Released on an unsuspecting world.