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(); } }
private void OnRequestChunkTrailer(HttpChunkTrailer trailer) { var data = trailer.GetBytes(protocolMachine.RequestMessage.Encoding); SendToDestination(data, protocolMachine.RequestMessage.Encoding); }