@@ -70,10 +70,9 @@ mod server;
7070pub mod sse;
7171pub mod static_files;
7272pub mod stream;
73+ pub mod typed_path;
7374#[ macro_use]
7475mod tracing_macros;
75- #[ cfg( any( test, feature = "test-utils" ) ) ]
76- mod test_client;
7776
7877/// Private module for macro internals - DO NOT USE DIRECTLY
7978///
@@ -94,25 +93,25 @@ pub use error::{get_environment, ApiError, Environment, FieldError, Result};
9493pub use extract:: Cookies ;
9594pub use extract:: {
9695 Body , BodyStream , ClientIp , Extension , FromRequest , FromRequestParts , HeaderValue , Headers ,
97- Json , Path , Query , State , ValidatedJson ,
96+ Json , Path , Query , State , Typed , ValidatedJson ,
9897} ;
9998pub use handler:: {
10099 delete_route, get_route, patch_route, post_route, put_route, Handler , HandlerService , Route ,
101100 RouteHandler ,
102101} ;
103102pub use health:: { HealthCheck , HealthCheckBuilder , HealthCheckResult , HealthStatus } ;
103+ pub use http:: StatusCode ;
104104pub use interceptor:: { InterceptorChain , RequestInterceptor , ResponseInterceptor } ;
105105#[ cfg( feature = "compression" ) ]
106106pub use middleware:: CompressionLayer ;
107107pub use middleware:: { BodyLimitLayer , RequestId , RequestIdLayer , TracingLayer , DEFAULT_BODY_LIMIT } ;
108108#[ cfg( feature = "metrics" ) ]
109109pub use middleware:: { MetricsLayer , MetricsResponse } ;
110110pub use multipart:: { Multipart , MultipartConfig , MultipartField , UploadedFile } ;
111- pub use request:: Request ;
111+ pub use request:: { BodyVariant , Request } ;
112112pub use response:: { Created , Html , IntoResponse , NoContent , Redirect , Response , WithStatus } ;
113- pub use router:: { delete, get, patch, post, put, MethodRouter , Router } ;
113+ pub use router:: { delete, get, patch, post, put, MethodRouter , RouteMatch , Router } ;
114114pub use sse:: { sse_response, KeepAlive , Sse , SseEvent } ;
115115pub use static_files:: { serve_dir, StaticFile , StaticFileConfig } ;
116116pub use stream:: { StreamBody , StreamingBody , StreamingConfig } ;
117- #[ cfg( any( test, feature = "test-utils" ) ) ]
118- pub use test_client:: { TestClient , TestRequest , TestResponse } ;
117+ pub use typed_path:: TypedPath ;
0 commit comments