summaryrefslogtreecommitdiff
path: root/ext/http/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/http/lib.rs')
-rw-r--r--ext/http/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/http/lib.rs b/ext/http/lib.rs
index 535f52a6c..48a58067e 100644
--- a/ext/http/lib.rs
+++ b/ext/http/lib.rs
@@ -289,9 +289,9 @@ impl HttpAcceptor {
}
/// A resource representing a single HTTP request/response stream.
-struct HttpStreamResource {
+pub struct HttpStreamResource {
conn: Rc<HttpConnResource>,
- rd: AsyncRefCell<HttpRequestReader>,
+ pub rd: AsyncRefCell<HttpRequestReader>,
wr: AsyncRefCell<HttpResponseWriter>,
accept_encoding: RefCell<Encoding>,
cancel_handle: CancelHandle,
@@ -324,7 +324,7 @@ impl Resource for HttpStreamResource {
}
/// The read half of an HTTP stream.
-enum HttpRequestReader {
+pub enum HttpRequestReader {
Headers(Request<Body>),
Body(Peekable<Body>),
Closed,