Mercurial > core / lisp/lib/net/srv.lisp
changeset 381: |
386d51cf61ca |
child: |
1816f9c53453 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Tue, 28 May 2024 23:12:31 -0400 |
permissions: |
-rw-r--r-- |
description: |
add ffi/readline, net updates |
1 ;;; net/srv.lisp --- Lisp Web Services 3 ;; This library contains provides a Web Server abstraction a la Hunchentoot or 8 ;; The code in this file is meant to be small. We want to leverage the core 9 ;; ecosystem and internal NET/* packages to build high-level abstractions that 10 ;; are still useful with minimal boilerplate. 12 ;; In other words we want to support both these use-cases in the least amount 15 (srv:start (srv:file-server)) ;; start a simple HTTP file server in current directory with all default values 17 (srv:define-web-service my-homepage :port 8080 :auth (auth settings ...) :routes (routes ...) &more ...) 18 (with-ws (ws 'my-homepage) 23 ;; This package contains the low-level base classes which are extended by this