Class
HttpServerHandler
Represents an event handler for the HttpServer, router, and related events.
public abstract class HttpServerHandlerInheritance #
Derived #
Inherited Members #
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| HttpServerHandler() |
Properties #
| Name | Description |
|---|---|
| Priority | Gets the priority value that determines the order in which handlers are executed. Lower values are executed first. |
Methods #
| Name | Description |
|---|---|
| OnContextBagCreated(TypedValueDictionary) | Event that is called when an HTTP context is created within an HttpRequest object. |
| OnException(Exception) | Event that is called when an exception is caught in the HTTP server. This method is called regardless of whether ThrowExceptions is enabled or not. |
| OnHttpRequestClose(HttpServerExecutionResult) | Event that is called when an HttpRequest is closed in the HTTP server. |
| OnHttpRequestOpen(HttpRequest) | Event that is called when an HttpRequest is received in the HTTP server. |
| OnServerStarted(HttpServer) | Event that is called immediately after starting the HttpServer, when it’s ready and listening. |
| OnServerStarting(HttpServer) | Event that is called immediately before starting the HttpServer. |
| OnServerStopped(HttpServer) | Event that is called after the HttpServer is stopped, meaning it has stopped from listening to requests. |
| OnServerStopping(HttpServer) | Event that is called before the HttpServer stop, when it is stopping from listening requests. |
| OnSetupRouter(Router) | Event that is called when an Router is binded to the HTTP server. |