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.
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.
Response.Flush()
, ActionResult , .
ActionResult
, :
public static class HttpHandlerStorage { // this should still be here, unless the HttpApplication reloads. public static IHttpHandler StoredHandler { get; set; } }
HttpContext .