Skip to content

Commit

Permalink
Merge branch 'main' into merge_flush
Browse files Browse the repository at this point in the history
  • Loading branch information
miamia0 authored Jan 10, 2024
2 parents 3de3fc0 + b92527f commit a294fed
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion volo-http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "volo-http"
version = "0.1.9"
version = "0.1.11"
edition.workspace = true
homepage.workspace = true
repository.workspace = true
Expand Down
51 changes: 28 additions & 23 deletions volo-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,38 @@ pub mod request;
pub mod response;
pub mod route;
pub mod server;

pub(crate) mod service_fn;

mod macros;

use std::convert::Infallible;
#[doc(hidden)]
pub mod prelude {
pub use bytes::Bytes;
pub use hyper::{
self,
body::Incoming as BodyIncoming,
http::{self, HeaderMap, HeaderName, HeaderValue, Method, StatusCode, Uri, Version},
};
pub use volo::net::Address;

pub use bytes::Bytes;
pub use hyper::{
self,
body::Incoming as BodyIncoming,
http::{self, HeaderMap, HeaderName, HeaderValue, Method, StatusCode, Uri, Version},
};
pub use volo::net::Address;
#[cfg(feature = "cookie")]
pub use crate::cookie::CookieJar;
#[cfg(any(feature = "serde_json", feature = "sonic_json"))]
pub use crate::json::Json;
pub use crate::{
context::{ConnectionInfo, HttpContext},
extension::Extension,
extract::{Form, MaybeInvalid, Query, State},
param::Params,
request::Request,
response::Response,
route::Router,
server::Server,
};

#[cfg(feature = "cookie")]
pub use crate::cookie::CookieJar;
#[cfg(any(feature = "serde_json", feature = "sonic_json"))]
pub use crate::json::Json;
pub use crate::{
context::{ConnectionInfo, HttpContext},
extension::Extension,
extract::{Form, MaybeInvalid, Query, State},
param::Params,
request::Request,
response::Response,
route::Router,
server::Server,
};
pub type DynService =
motore::BoxCloneService<HttpContext, BodyIncoming, Response, std::convert::Infallible>;
}

pub type DynService = motore::BoxCloneService<HttpContext, BodyIncoming, Response, Infallible>;
pub use prelude::*;

0 comments on commit a294fed

Please sign in to comment.