changelog shortlog graph tags branches changeset files revisions annotate raw help

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
2 
3 ;; This library contains provides a Web Server abstraction a la Hunchentoot or
4 ;; Woo.
5 
6 ;;; Commentary:
7 
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.
11 
12 ;; In other words we want to support both these use-cases in the least amount
13 ;; of code:
14 #|
15 (srv:start (srv:file-server)) ;; start a simple HTTP file server in current directory with all default values
16 
17 (srv:define-web-service my-homepage :port 8080 :auth (auth settings ...) :routes (routes ...) &more ...)
18 (with-ws (ws 'my-homepage)
19  (srv:start ws))
20 |#
21 
22 ;;;; NET/SANS-IO
23 ;; This package contains the low-level base classes which are extended by this
24 ;; library.
25 
26 ;;; Code:
27 (in-package :net/srv)
28