createServer
createServer(
handle
,options
):Server
Creates a Bun server using the provided handle function and options
Parameters
Parameter | Type | Description |
---|---|---|
handle | Handle | The handle function created by createHandle |
options | ServerOptions | The server options including the port and hostname |
Returns
The created server instance