コード例 #1
0
        private void OnResponseChunkTrailer(HttpChunkTrailer trailer)
        {
            var data = trailer.GetBytes(protocolMachine.ResponseMessage.Encoding);

            SendToSource(data, protocolMachine.ResponseMessage.Encoding);
            if (!CanRead || !CanWrite)
            {
                View.PutLine("{0}: OnResponseBody: CanRead={1} CanWrite={2}", Name, CanRead, CanWrite);
                Close();
            }
        }
コード例 #2
0
        private void OnRequestChunkTrailer(HttpChunkTrailer trailer)
        {
            var data = trailer.GetBytes(protocolMachine.RequestMessage.Encoding);

            SendToDestination(data, protocolMachine.RequestMessage.Encoding);
        }