From 65f87c16f440548bc388d348a9c18c72a808d018 Mon Sep 17 00:00:00 2001 From: Vitaly _Vi Shukela Date: Fri, 23 Dec 2016 01:51:40 +0300 Subject: [PATCH] Open access to server::Connection fields Allow users to make custom servers (non-TCP, non-SSL). For example, UNIX-socket-based server for Nginx integration. --- src/server/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/mod.rs b/src/server/mod.rs index 8236b1c089..3341baf710 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -145,7 +145,7 @@ impl<'a> Iterator for Server<'a> { } /// Represents a connection to the server that has not been processed yet. -pub struct Connection(R, W); +pub struct Connection(pub R, pub W); impl Connection { /// Process this connection and read the request.