IHttpHandler Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the contract that ASP.NET implements to synchronously process HTTP Web requests using custom HTTP handlers.
public interface class IHttpHandler
public interface IHttpHandler
type IHttpHandler = interface
Public Interface IHttpHandler
- Derived
Remarks
You can write custom HTTP handlers to process specific, predefined types of HTTP requests in any Common Language Specification (CLS) compliant language. Executable code defined in the HttpHandler
classes, rather than conventional ASP or ASP.NET Web pages, responds to these specific requests. HTTP handlers give you a means of interacting with the low-level request and response services of the IIS Web server and provide functionality much like ISAPI extensions but with a simpler programming model.
If your handler will access session state values, it must implement the IRequiresSessionState interface (a marker interface with no methods).
Properties
IsReusable |
Gets a value indicating whether another request can use the IHttpHandler instance. |
Methods
ProcessRequest(HttpContext) |
Enables processing of HTTP Web requests by a custom |
Applies to
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за