我需要知道什么是 Spring MVC 中的 Response.Clear 和 Response.ClearContent。
最佳答案
Response.Clear()
调用 Response.ClearContent()
(只是同一函数的更匹配名称)。没有区别。两者都清除响应流,但 header 信息除外。
public void Clear ()
{
ClearContent ();
}
public void ClearContent ()
{
output_stream.Clear ();
content_length = -1;
}
关于c# - Spring MVC 中的 Response.Clear 和 Response.ClearContent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9044568/