Skip to content

Commit 6895643

Browse files
committed
Replace custom response structs with aws_lambda_events
Signed-off-by: David Calavera <david.calavera@gmail.com>
1 parent 05a7bee commit 6895643

File tree

4 files changed

+45
-459
lines changed

4 files changed

+45
-459
lines changed

lambda-http/src/body.rs

Lines changed: 0 additions & 276 deletions
This file was deleted.

lambda-http/src/ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl Error for PayloadError {
6868
/// as well as `{"x":1, "y":2}` respectively.
6969
///
7070
/// ```rust,no_run
71-
/// use lambda_http::{service_fn, Error, Context, body::Body, IntoResponse, Request, Response, RequestExt};
71+
/// use lambda_http::{service_fn, Error, Context, Body, IntoResponse, Request, Response, RequestExt};
7272
/// use serde::Deserialize;
7373
///
7474
/// #[derive(Debug,Deserialize,Default)]

lambda-http/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ pub use http::{self, Response};
6666
use lambda_runtime::LambdaEvent;
6767
pub use lambda_runtime::{self, service_fn, tower, Context, Error, Service};
6868

69-
pub mod body;
7069
pub mod ext;
7170
pub mod request;
7271
mod response;
@@ -75,7 +74,7 @@ use crate::{
7574
request::{LambdaRequest, RequestOrigin},
7675
response::LambdaResponse,
7776
};
78-
use aws_lambda_events::encodings::Body;
77+
pub use aws_lambda_events::encodings::Body;
7978
use std::{
8079
future::Future,
8180
marker::PhantomData,

0 commit comments

Comments
 (0)