File tree Expand file tree Collapse file tree 5 files changed +6
-10
lines changed Expand file tree Collapse file tree 5 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ const CR: u8 = b'\r';
1616const LF : u8 = b'\n' ;
1717
1818/// Decode an HTTP response on the client.
19- #[ doc( hidden) ]
2019pub async fn decode < R > ( reader : R ) -> http_types:: Result < Response >
2120where
2221 R : Read + Unpin + Send + Sync + ' static ,
Original file line number Diff line number Diff line change @@ -106,10 +106,9 @@ const MAX_HEAD_LENGTH: usize = 8 * 1024;
106106
107107mod chunked;
108108mod date;
109- mod server;
110109
111- #[ doc( hidden) ]
112110pub mod client;
111+ pub mod server;
113112
114113pub use client:: connect;
115114pub use server:: { accept, accept_with_opts, ServerOptions } ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const LF: u8 = b'\n';
1717const HTTP_1_1_VERSION : u8 = 1 ;
1818
1919/// Decode an HTTP request on the server.
20- pub ( crate ) async fn decode < IO > ( mut io : IO ) -> http_types:: Result < Option < Request > >
20+ pub async fn decode < IO > ( mut io : IO ) -> http_types:: Result < Option < Request > >
2121where
2222 IO : Read + Write + Clone + Send + Sync + Unpin + ' static ,
2323{
Original file line number Diff line number Diff line change @@ -12,10 +12,8 @@ use crate::chunked::ChunkedEncoder;
1212use crate :: date:: fmt_http_date;
1313
1414/// A streaming HTTP encoder.
15- ///
16- /// This is returned from [`encode`].
1715#[ derive( Debug ) ]
18- pub ( crate ) struct Encoder {
16+ pub struct Encoder {
1917 /// The current level of recursion the encoder is in.
2018 depth : u16 ,
2119 /// HTTP headers to be sent.
@@ -71,7 +69,7 @@ impl Read for Encoder {
7169
7270impl Encoder {
7371 /// Create a new instance of Encoder.
74- pub ( crate ) fn new ( res : Response , method : Method ) -> Self {
72+ pub fn new ( res : Response , method : Method ) -> Self {
7573 Self {
7674 res,
7775 depth : 0 ,
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ use http_types::{Request, Response};
1010mod decode;
1111mod encode;
1212
13- use decode:: decode;
14- use encode:: Encoder ;
13+ pub use decode:: decode;
14+ pub use encode:: Encoder ;
1515
1616/// Configure the server.
1717#[ derive( Debug , Clone ) ]
You can’t perform that action at this time.
0 commit comments