Skip to content

Commit

Permalink
Reexport external modules of publicly used types (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcormier authored Oct 8, 2022
1 parent fc51300 commit 45211b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions lambda-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ use crate::{
request::{LambdaRequest, RequestOrigin},
response::LambdaResponse,
};

#[cfg(feature = "alb")]
pub use aws_lambda_events::alb;
#[cfg(any(feature = "apigw_rest", feature = "apigw_http", feature = "apigw_websockets"))]
pub use aws_lambda_events::apigw;

pub use aws_lambda_events::encodings::Body;
use std::{
future::Future,
Expand Down
8 changes: 4 additions & 4 deletions lambda-http/src/response.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//! Response types
use crate::request::RequestOrigin;
use aws_lambda_events::encodings::Body;
#[cfg(feature = "alb")]
use aws_lambda_events::event::alb::AlbTargetGroupResponse;
use aws_lambda_events::alb::AlbTargetGroupResponse;
#[cfg(any(feature = "apigw_rest", feature = "apigw_websockets"))]
use aws_lambda_events::event::apigw::ApiGatewayProxyResponse;
use aws_lambda_events::apigw::ApiGatewayProxyResponse;
#[cfg(feature = "apigw_http")]
use aws_lambda_events::event::apigw::ApiGatewayV2httpResponse;
use aws_lambda_events::apigw::ApiGatewayV2httpResponse;
use aws_lambda_events::encodings::Body;
use encoding_rs::Encoding;
use http::header::CONTENT_ENCODING;
use http::HeaderMap;
Expand Down

0 comments on commit 45211b0

Please sign in to comment.