Sending multiple HTTP responses to a single HTTP request in .NET.

I am new to .NET and want to develop an application that sends multiple HTTP responses to a single HTTP request.

Is there a way to store the HTTP handler on the server, which can be used when necessary.

+5
source share
2 answers

You break the HTTP standard by sending multiple request requests.

However, you can use Transfer-Encoding "chunked", which sends a response in several parts. In regular ASP.Net, you would use Response.Flush()to achieve this.

, ActionResult , .

+5

, :

public static class HttpHandlerStorage
{
    //  this should still be here, unless the HttpApplication reloads.
    public static IHttpHandler StoredHandler { get; set; }
}

HttpContext .

0

All Articles