Skip to content

Is there a way to mark responses as ones that should be sent base64 encoded to be returned via api gateway? #452

Closed Answered by bnusunny
tqhoughton asked this question in Q&A
Discussion options

You must be logged in to vote

Lambda Web Adapter does support binary contents. LWA uses lambda-http crate to handle that. Lambda-http will detect binary contents based on content-type and content-encoding headers, and auto base64 encode the data. You don't need to encode the binary data yourself.

Here are the content-type prefixes and suffixes that are treated as text. Others are treated as binary.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tqhoughton
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #451 on April 24, 2024 05:11.