SERVER

INTRO

The server module provides static HTTP and WebSocket server.

IO

Listing 1. Request
type Req = { cmd : string, path : string, headers : (string*string) list, vers : string }
Listing 1. Response
type Resp = { status : int, headers : (string*string) list, body : Word8Vector.vector }