Skip to main content

Class: HttpEngine

A class for handling HTTP engine operations.

Implements​

Constructors​

Constructor​

new HttpEngine(executionEngine, hostProcessor, versionProcessor, hostMatcher, versionMatcher, scopedContainerManager): HttpEngine

Parameters​

executionEngine​

ExecutionEngine

hostProcessor​

HostProcessor

versionProcessor​

VersionProcessor

hostMatcher​

HostMatcher

versionMatcher​

VersionMatcher

scopedContainerManager​

ScopedContainerManager

Returns​

HttpEngine

Methods​

execute()​

execute(context, routes): Promise<void>

Executes the HTTP engine with the provided context.

Parameters​

context​

Pick<HttpContext, "request" | "response" | "session">

The HTTP context for execution.

routes​

RouteDefinition[]

The routes to map which will be executed.

Returns​

Promise<void>

Implementation of​

Executable.execute