Skip to content
This repository has been archived by the owner on Feb 10, 2019. It is now read-only.

better handling of binary data #32

Merged
merged 4 commits into from Oct 23, 2018
Merged

better handling of binary data #32

merged 4 commits into from Oct 23, 2018

Conversation

softprops
Copy link
Owner

aws gateway requests and responses can have no body or a body that represented as text or binary

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-payload-encodings.html

this wasn't previously represented well in the type system. events have an is_base64_encoded flag but thats not exposed directly to clients so body type representation would be more appropriate.

This also fixes a previous problem where there was no way for handlers communicate this in responses.

@softprops softprops merged commit 8a12f98 into master Oct 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant