private void HandleContentLength( NetworkStream serverStream, NetworkStream browserStream, byte[] bodyPart, int bodyLength) { var contentHandler = new ContentLength( new MyNetworkStream(serverStream), new MyNetworkStream(browserStream)); contentHandler.HandleResponseBody(bodyPart, Convert.ToString(bodyLength)); }
internal void ReadAndSendChunk(byte[] bodyPart, int toRead) { chunkHandler = new ContentLength(serverStream, browserStream); chunkHandler.HandleResponseBody(bodyPart, Convert.ToString(toRead)); Remainder = chunkHandler.Remainder; }