Sisk

Class

HttpServerHandler

Namespace
Sisk.Core.Http.Handlers
Assembly
Sisk.Core.dll

Represents an event handler for the HttpServer, router, and related events.

C#
public abstract class HttpServerHandler

Inheritance #

object ← HttpServerHandler

Derived #

AsyncHttpServerHandler

Inherited Members #

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
HttpServerHandler()

Properties #

NameDescription
PriorityGets the priority value that determines the order in which handlers are executed. Lower values are executed first.

Methods #

NameDescription
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.

Type to search the documentation and the API reference.