aws-lambda-web-adapter icon indicating copy to clipboard operation
aws-lambda-web-adapter copied to clipboard

Switch from Reqwest client to Hyper client

Open bnusunny opened this issue 3 years ago • 0 comments

Lambda Web Adapter use Reqwest client to send http requests, which works great. And AWS Lambda Rust Runtime lambda-http crate added support for http_body::Body in v0.6.0, see PR#491.

By switching from Reqwest client to Hyper client, we can use that feature from lambda-http crate and remove convert_body() function here. Reduce the amount of code in the adapter.

bnusunny avatar Jul 24 '22 05:07 bnusunny