启用ASP.NET块传输编码

编程入门 行业动态 更新时间:2024-10-25 00:24:36
本文介绍了启用ASP.NET块传输编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个ASP.NET 3.5的网站驻留在IIS7。我使用的动态COM pression,想看看我是否能实现分块编码。是否有IIS或web配置,使得它的一些设置?

I have an ASP.NET 3.5 website residing on IIS7. I am using dynamic compression and wanted to see if I can enable chunked encoding. Is there some setting on IIS or web config that enables it?

推荐答案

在我的经验中,调用Response.Flush()将设置传输编码为分块。而实际上我认为设置Response.BufferedOutput将其设置为每次分块是Response.OutputStream刷新。

In my experience, calling Response.Flush() will set the Transfer-Encoding to chunked. And actually I think setting Response.BufferedOutput will set it to chunked everytime Response.OutputStream is flushed.

这是除非内容长度已定,那么它只是刷新输出无需设置分块。

That is unless a Content-Length has been set, then it just flushes the output without setting chunked.

更多推荐

启用ASP.NET块传输编码

本文发布于:2023-11-14 04:46:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586257.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ASP   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!