Function: createHttpServer()
createHttpServer(
options?):HttpServerInstance
Defined in: net/server/http-compat.ts:792
Factory function to create the appropriate HTTP server implementation depending on the runtime (Deno or Node.js).
Uses the RuntimeAdapter registry to determine the current runtime. Browser environments do not support HTTP server creation and will throw.
Parameters
| Parameter | Type |
|---|---|
options | HttpServerOptions |