On this page:
server?
make-server-factory

21 Server

 (require koyo/server) package: koyo-lib

This module provides a web server component.

procedure

(server? v)  boolean?

  v : any/c
Returns #t when v is a server.

procedure

((make-server-factory [#:host host    
  #:port port])    
  dispatcher)  server?
  host : non-empty-string? = "127.0.0.1"
  port : (integer-in 0 65535) = 8000
  dispatcher : dispatcher/c
Creates a component that, when started, runs a web server bound to host and port using the given dispatcher.