Skip to content

server #

fn serve #

fn serve(router Router, port int)

serve starts the server at the give port

interface Router #

interface Router {
	respond_error(code int) []u8
	receive(method string, path string, raw_headers []string, body []u8) (int, []u8, []u8)
}