Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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