functai for TypeScript - v0.1.0
    Preparing search index...

    Function serve

    • Serve a program over HTTP: its interface, calls, streams and conversations, to callers who see only its boundary. Resolves to Node's server once it listens (server.close() stops it). Without keys it listens only on this machine. Elsewhere than Node, mount new Service(program).fetch.

      Parameters

      • program: Servable
      • opts: ServeOptions & { host?: string; port?: number } = {}

      Returns Promise<Server<typeof IncomingMessage, typeof ServerResponse>>