Module @famir/http-server
@famir/http-server

HTTP server with request processing through a chain of middlewares.
Features
- TypeScript-first with strict type guards and assertions
- Configuration via
@famir/config package
- Native node:http as backend HTTP Server
- WebSocket support via
ws package
- A context with the HTTP data during the lifetime of the request
- Clear error handling with
HttpServerError
- Structured logging with
@famir/logger package
- Integration with
@famir/common DI container
Classes
- HttpServerAssets
- HttpServerContextFactory
- HttpServerError
- HttpServerNormalContext
- HttpServerRouter
- HttpServerWebSocketContext
- NativeHttpServer
Interfaces
- HttpServer
- HttpServerContext
- HttpServerContextState
- NativeHttpServerConfig
Type Aliases
- HttpServerContextType
- HttpServerErrorCode
- HttpServerErrorOptions
- HttpServerMiddleware
- HttpServerNextFunction
Variables
- HTTP_SERVER
- HTTP_SERVER_ASSETS
- HTTP_SERVER_CONTEXT_FACTORY
- HTTP_SERVER_ROUTER