Changelog for wai-handler-hal-0.4.0.2
Revision history for wai-handler-hal
0.4.0.2 -- 2025-08-14
- Union single and multi-value query parameters and headers when
converting a
halProxyRequestto awaiRequest
0.4.0.1 -- 2025-02-19
- Use a
NonEmptylist when consuming the result ofgetAddrInfo. - When resolving source IPs, do not require
AF_INET(IPv4) addresses. This allows IPv6 source addresses to be passed through to the underlyingwaiApplication.
0.4.0.0 -- 2024-01-17
-
New function:
Wai.Handler.Hal.runWithOptions :: Options -> Application -> ProxyRequest NoAuthorizer -> ProxyResponse. This provides a convenient way to pass customOptionswithout all the bells and whistles ofrunWithContext. -
Instead of guessing whether a given response
Content-Typeshould be sent as text or base64-encoded binary,Optionsnow contains abinaryMediaTypes :: [MediaType], which lists the media types that should be base64-encoded. This should match thebinaryMediaTypessetting 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.
0.3.0.0 -- 2023-12-17
- Accidental breaking change: more elaborate
Content-Typeheaders likeContent-Type: application/json; charset=utf-8are now encoded as if they were binary payloads. This release has been deprecated. - Breaking change: add
Optionsrecord parameter torunWithContext,toWaiRequestandfromWaiResponse. - Provide a
defaultOptions. - Make whether or not to run base64-encoding on the response body customizable
through
Options.binaryMimeType.
0.2.0.0 -- 2023-03-17
- Breaking change:
toWaiRequestnow sorts request headers and query string parameters.
0.1.2.0 -- 2022-06-03
- Fix construction of
rawPathInfo.
0.1.1.0 -- 2021-10-14
- When API Gateway sends nonsense IPs during a test invocation, sub in
127.0.0.1instead of exploding. #3 - Removed debug
prints left in by mistake.
0.1.0.0 -- 2021-04-15
- First version. Released on an unsuspecting world.