开发者

HttpModule for a Response Filter - override Write or Close

开发者 https://www.devze.com 2022-12-13 16:30 出处:网络
What are the advantages/disadvantages of overriding Write instead of Close on the Filter Stream that does filt开发者_如何转开发ering in an HttpModule?

What are the advantages/disadvantages of overriding Write instead of Close on the Filter Stream that does filt开发者_如何转开发ering in an HttpModule?

I assume you would want to use Write because the memory used by the buffer is smaller than using the entire byte array during Close. Are there other reasons not to do manipulation in Close?

0

精彩评论

暂无评论...
验证码 换一张
取 消