KestrunContext constructor (1 of 2)

Initializes a new instance of the KestrunContext class. This constructor is used when creating a new KestrunContext from an existing HTTP context. It initializes the KestrunRequest and KestrunResponse based on the provided HttpContext

public KestrunContext(KestrunHost host, HttpContext httpContext)
parameter description
host The Kestrun host.
httpContext The associated HTTP context.

See Also


KestrunContext constructor (2 of 2)

Initializes a new instance of the KestrunContext class. This constructor is used when creating a new KestrunContext from an existing HTTP context. It initializes the KestrunRequest and KestrunResponse based on the provided HttpContext

public KestrunContext(KestrunHost host, KestrunRequest request, KestrunResponse response, 
    HttpContext httpContext)
parameter description
host The Kestrun host.
request The Kestrun request.
response The Kestrun response.
httpContext The associated HTTP context.

See Also