Table of Contents

Class HttpContext

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

Represents an context that is shared in a entire HTTP session.

public sealed class HttpContext
Inheritance
HttpContext
Inherited Members

Properties

Current

Gets the current running HttpContext.

ExtraHeaders

Gets or sets the HttpHeaderCollection indicating HTTP headers which will be added (not overwritten) in the final response.

HttpServer

Gets the context HttpServer instance.

IsRequestContext

Gets whether the current thread context is running inside an HTTP context.

ListeningHost

Gets the ListeningHost instance of this HTTP context.

MatchedRoute

Gets the matched Route for this context.

OverrideHeaders

Gets or sets an HttpHeaderCollection indicating HTTP headers which will overwrite headers set by CORS, router response or request handlers.

Request

Gets the HttpRequest which is contained in this HTTP context.

RequestBag

Gets or sets a managed collection for this HTTP context.

Router

Gets the Router where this context was created.

RouterResponse

Gets the HttpResponse for this context. This property acessible when a post-executing IRequestHandler was executed for this router context.