Interface: ServeOptions
Options for configuring the HTTP server.
Properties
fetch
fetch:
FetchHandler
Handler function called for each incoming HTTP request.
listenIp?
optionallistenIp:string
IP address to bind to. Defaults to '0.0.0.0'.
port?
optionalport:number
Port to listen on. Defaults to 0 (random available port).
tls?
optionaltls:TlsOptions
TLS options for enabling HTTPS. When provided, the server listens for HTTPS connections.
websocket?
optionalwebsocket:WebSocketHandlers
Optional WebSocket event handlers for upgraded connections.