Does WCF support transmit encoding?

Does WCF support Chunked Transfer Encoding ? I looked on the Internet, but I could not find much on this subject. My WCF REST APIs all use WebOperationContext.CreateStreamResponse to return a response to the client. Using these APIs in WebOperationContext, I was hoping the Transfer-Encoding: chunked function was enabled.

+6
source share
1 answer

Yes, it supports it, but it must be installed in the transport binding. If you use WebHttpBinding , you can set the TransferMode property to TransferMode.Streamed If you use custom binding, you can set this property to HttpTransportBindingElement .

+4
source

Source: https://habr.com/ru/post/916611/