Skip to content

Commit 45211b0

Browse files
authored
Reexport external modules of publicly used types (#542)
1 parent fc51300 commit 45211b0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lambda-http/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ use crate::{
7878
request::{LambdaRequest, RequestOrigin},
7979
response::LambdaResponse,
8080
};
81+
82+
#[cfg(feature = "alb")]
83+
pub use aws_lambda_events::alb;
84+
#[cfg(any(feature = "apigw_rest", feature = "apigw_http", feature = "apigw_websockets"))]
85+
pub use aws_lambda_events::apigw;
86+
8187
pub use aws_lambda_events::encodings::Body;
8288
use std::{
8389
future::Future,

lambda-http/src/response.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//! Response types
22
33
use crate::request::RequestOrigin;
4-
use aws_lambda_events::encodings::Body;
54
#[cfg(feature = "alb")]
6-
use aws_lambda_events::event::alb::AlbTargetGroupResponse;
5+
use aws_lambda_events::alb::AlbTargetGroupResponse;
76
#[cfg(any(feature = "apigw_rest", feature = "apigw_websockets"))]
8-
use aws_lambda_events::event::apigw::ApiGatewayProxyResponse;
7+
use aws_lambda_events::apigw::ApiGatewayProxyResponse;
98
#[cfg(feature = "apigw_http")]
10-
use aws_lambda_events::event::apigw::ApiGatewayV2httpResponse;
9+
use aws_lambda_events::apigw::ApiGatewayV2httpResponse;
10+
use aws_lambda_events::encodings::Body;
1111
use encoding_rs::Encoding;
1212
use http::header::CONTENT_ENCODING;
1313
use http::HeaderMap;

0 commit comments

Comments
 (0)