momentohq / client-sdk-rust

Official Rust SDK for Momento Serverless Cache
Apache License 2.0
12 stars 4 forks source link

WIP: use lambda_http crate to print api gateway proxy events #390

Open anitarua opened 2 months ago

anitarua commented 2 months ago

Currently, have a basic API gateway with POST / route that integrates with the deployed lambda using the lambda_http crate.

Can test in console using a dummy API Gateway HTTP API event and see log output with body: Binary([123, 34, 116, 101, 115, 116, 34, 58, 34, 98, 111, 100, 121, 34, 125])

Was trying to send grpc requests from js sdk with AllEndpoints overridden but getting dns failures. Grpc requests should all be HTTP POST requests with content-type prefixed with application/grpc but haven't quite figured out if maybe headers need to be changed/accepted by API gateway first or what.