Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does WCF support Chunked Transfer Encoding

Tags:

c#

.net

http

wcf

Does WCF support Chunked Transfer Encoding? I've been looking on the Web but I couldn't find much on the subject. My WCF REST APIs are all using WebOperationContext.CreateStreamResponse to return a response to the client. Using that APIs on the WebOperationContext, I was hoping that the Transfer-Encoding: chunked would be turned on.

like image 785
Martin Avatar asked May 25 '12 00:05

Martin


1 Answers

Yes, it does support it, but it needs to be set at the transport binding. If you're using the WebHttpBinding, you can set the TransferMode property to TransferMode.Streamed If you're using a custom binding, you can set that property on the HttpTransportBindingElement.

like image 129
carlosfigueira Avatar answered Sep 28 '22 15:09

carlosfigueira