コード例 #1
0
        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));
        }
コード例 #2
0
 internal void ReadAndSendChunk(byte[] bodyPart, int toRead)
 {
     chunkHandler = new ContentLength(serverStream, browserStream);
     chunkHandler.HandleResponseBody(bodyPart, Convert.ToString(toRead));
     Remainder = chunkHandler.Remainder;
 }