Creates a context for a normal HTTP request.
The server request object.
The server response object.
The context shared state.
The created HTTP context.
Creates a context for a WebSocket connection.
The WebSocket connection.
The server request object.
The context shared state.
The created HTTP context.
StaticregisterRegisters the context factory as a singleton in the DI container.
The DI container to register in.
Represents the http-server context factory.
Separates context creation logic from the main server implementation.