1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
pub mod server {
pub mod grpc {
pub use crate::codec::{Encode, Streaming};
pub use crate::generic::server::{
ClientStreamingService, ServerStreamingService, StreamingService, UnaryService,
};
pub use crate::server::{
client_streaming, server_streaming, streaming, unary, unimplemented,
};
pub use crate::{error::Never, Body, BoxBody, Code, Request, Response, Status};
}
pub mod futures {
pub use futures::future::{ok, FutureResult};
pub use futures::{Async, Future, Poll, Stream};
}
pub mod http {
pub use http::{HeaderMap, Request, Response};
}
pub mod tower {
pub use http_body::Body as HttpBody;
pub use tower_service::Service;
pub use tower_util::MakeService;
}
#[cfg(feature = "tower-hyper")]
pub mod tower_hyper {
pub use tower_hyper::Body;
}
}
pub mod client {
pub mod grpc {
pub use crate::client::{
client_streaming, server_streaming, streaming, unary, Encodable, Grpc,
};
pub use crate::generic::client::GrpcService;
pub use crate::{Body, Code, Request, Response, Status};
}
pub mod http {
pub use http::uri::{PathAndQuery, Uri};
}
pub mod futures {
pub use futures::{Future, Poll, Stream};
}
pub mod tower {
pub use http_body::Body as HttpBody;
}
}