Created
June 12, 2017 14:30
-
-
Save donabrams/78a4245639436b311dcd884964f516c4 to your computer and use it in GitHub Desktop.
Mock API Gateway signature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| start :: ApiGateway -> Request -> Response | |
| create :: forall i, o. | |
| { | |
| method, | |
| path, | |
| intReq: Async (HTTPRequest -> i), | |
| lambda: Async (i -> Tuple o Status), | |
| intRes: Status -> o -> Async HTTPResponse | |
| } -> ApiGateway | |
| -- problems: does o differ per status but need to be synced between 7/8? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment