The s-http-server Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The s-http-server Reference Manual

This is the s-http-server Reference Manual, version 1, generated automatically by Declt version 2.4 "Will Decker" on Wed Jun 20 12:32:19 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

S-HTTP-SERVER

A Minimal Standalone Common Lisp HTTP Server

S-HTTP-SERVER is a minimal standalone HTTP Server. This simple package is used as a building block in a number of other open source projects.

Contents

Features

S-HTTP-SERVER can:

Status

S-HTTP-SERVER is considered stable code.

News

Platforms

S-HTTP-SERVER is written in ANSI standard Common Lisp and should be portable across any CL implementation.

Installation

The S-HTTP-SERVER package is loaded using ASDF. There is an excellent tutorial on ASDF to get you started.

CL-USER 1 > (asdf:oos 'asdf:load-op :`S-HTTP-SERVER`)

Usage

Basically, you create an S-HTTP-SERVER object and start it. Out of the box only the status/debug page http://localhost:1701/s-http-server is served. By registering new context handlers you can configure the server further. The static-resource-handler hosts static documents from a root directory in the file system. It is possible to write your own handlers, look at the code of static-resource-handler and S-HTTP-SERVER-handler for guidance.

CL-USER 1 > (in-package :`S-HTTP-SERVER`)
#<The `S-HTTP-SERVER` package, 90/128 internal, 31/64 external>

`S-HTTP-SERVER` 2 > (defvar *server* (make-`S-HTTP-SERVER`))
*SERVER*

`S-HTTP-SERVER` 3 > (start-server *server*)
;; `S-HTTP-SERVER`: Started a new server on port 1701
#<`S-HTTP-SERVER` "`S-HTTP-SERVER`" port 1701 running 10C5F6EB>

`S-HTTP-SERVER` 4 > (register-context-handler *server* "/my-site" 'static-resource-handler :arguments '("/var/www/"))
((STATIC-RESOURCE-HANDLER "/my-site" "/var/www/") (`S-HTTP-SERVER`-HANDLER "/`S-HTTP-SERVER`" :BUILTIN))

`S-HTTP-SERVER` 5 > (stop-server *server*)
;; `S-HTTP-SERVER`: Stopped server
#<`S-HTTP-SERVER` "`S-HTTP-SERVER`" port 1701 not running 10C5F6EB>

Jean-François Brouillet has written an excellent tutorial on using S-HTTP-SERVER, complete with screenshots and code examples.

API Reference

There is automatically generated API Reference documentation available for the S-HTTP-SERVER package.

Mailinglist

The KPAX mailing list is used for this project.

Changelog

Release Notes:

TODO

There is currently no TODO list.

FAQ

Nothing appropriate.

Bugs

There are no known bugs.

Authors

S-HTTP-SERVER was written by Sven Van Caekenberghe.

Maintainers

S-HTTP-SERVER is being maintained by Sven Van Caekenberghe.

License

You are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser General Public License (http://opensource.franz.com/preamble.html), also known as the LLGPL.

History

This is a new project.

References

The reference for the HTTP protocol is RFC 2616. Also worth reading is the Wikipedia article about HTTP.

Copyright © 2005, 2006 Sven Van Caekenberghe, Beta Nine BVBA. All Right Reserve


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 s-http-server

Maintainer

Sven Van Caekenberghe <svc@mac.com>

Author

Sven Van Caekenberghe <svc@mac.com>

License

Lesser Lisp General Public License (LLGPL)

Description

S-HTTP-SERVER is a small standalone Common Lisp HTTP Server

Long Description

S-HTTP-SERVER is a small standalone Common Lisp HTTP Server

Version

1

Dependencies
Source

s-http-server.asd (file)

Component

src (module)


Next: , Previous: , Up: Top   [Contents][Index]

3 Modules

Modules are listed depth-first from the system components tree.


Previous: , Up: Modules   [Contents][Index]

3.1 s-http-server/src

Parent

s-http-server (system)

Location

src/

Components

Next: , Previous: , Up: Top   [Contents][Index]

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

4.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.1 s-http-server.asd

Location

s-http-server.asd

Systems

s-http-server (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.2 s-http-server/src/package.lisp

Parent

src (module)

Location

src/package.lisp

Packages

s-http-server


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.3 s-http-server/src/globals.lisp

Dependency

package.lisp (file)

Parent

src (module)

Location

src/globals.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.4 s-http-server/src/http-server.lisp

Dependencies
Parent

src (module)

Location

src/http-server.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.5 s-http-server/src/handlers.lisp

Dependencies
Parent

src (module)

Location

src/handlers.lisp

Exported Definitions
Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

4.1.6 s-http-server/src/tools.lisp

Dependencies
Parent

src (module)

Location

src/tools.lisp

Exported Definitions
Internal Definitions

cleanup-all-pooled-connections (method)


Next: , Previous: , Up: Top   [Contents][Index]

5 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

5.1 s-http-server

S-HTTP-SERVER is a minial standalone Common Lisp HTTP Server

Source

package.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

6.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.1 Special variables

Special Variable: *favicon*

If not nil, the pathname to a favicon.ico or a (unsigned-byte 8) array representing a favicon

Package

s-http-server

Source

globals.lisp (file)

Special Variable: *http-server-identification*

Identification string sent as value of the ’Server’ HTTP Response Header

Package

s-http-server

Source

globals.lisp (file)

Special Variable: *http-server-port*

Default port used when creating a new S-HTTP-SERVER

Package

s-http-server

Source

globals.lisp (file)

Special Variable: *last-http-request*

The last HTTP-REQUEST object handled by S-HTTP-SERVER

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +enable-gzip-compression+

Use Salza2 to GZIP compress certain mime types

Package

s-http-server

Source

globals.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.2 Functions

Function: accepts-gzip-encoding-p HTTP-REQUEST

Return T when http-request accepts gzip content encoding

Package

s-http-server

Source

handlers.lisp (file)

Function: compressible-mime-type-p MIME-TYPE

Return T when mime-type is compressible using gzip

Package

s-http-server

Source

handlers.lisp (file)

Function: configure-default-handlers S-HTTP-SERVER

Setup a set of default handlers to a server

Package

s-http-server

Source

tools.lisp (file)

Function: favicon-handler S-HTTP-SERVER HANDLER HTTP-REQUEST STREAM

Handle that annoying favicon.ico request in a more elegant way

Package

s-http-server

Source

handlers.lisp (file)

Function: gzip-compress IN COMPRESSOR BYTE-BUFFER

Compress input stream or function in using gzip, returning (values data-chunks data-size)

Package

s-http-server

Source

handlers.lisp (file)

Function: make-s-http-server &key PORT NAME LOG-STREAM ACCESS-LOG-STREAM

Create a new object representing an S-HTTP-SERVER

Package

s-http-server

Source

tools.lisp (file)

Function: ps S-HTTP-SERVER

Show the state of all http connections known to the server

Package

s-http-server

Source

tools.lisp (file)

Function: redirect-handler S-HTTP-SERVER HANDLER HTTP-REQUEST STREAM

This handler immediately redirects to another URL

Package

s-http-server

Source

handlers.lisp (file)

Function: request-header-value HTTP-REQUEST HEADER-NAME

Get the value of a named header of http-request

Package

s-http-server

Source

handlers.lisp (file)

Function: s-http-server-handler S-HTTP-SERVER HANDLER HTTP-REQUEST STREAM

The builtin S-HTTP-SERVER testing/debugging handler returning a simple status/echo/snoop page

Package

s-http-server

Source

handlers.lisp (file)

Function: standard-http-html-error-response HTTP-REQUEST STREAM CODE REASON EXTRA

Generate and write a standard HTML error as HTTP Response using code, reason and extra

Package

s-http-server

Source

http-server.lisp (file)

Function: standard-http-html-message-response HTTP-REQUEST STREAM TITLE MESSAGE &optional STATUS STRING

Generate and write a standard HTML message as HTTP Response using title, message, status and string

Package

s-http-server

Source

http-server.lisp (file)

Function: standard-http-response-headers HTTP-REQUEST &key CONTENT-TYPE CONTENT-LENGTH

Generate the standard headers alist given context-type and context-length, managing old-style Keep-Alive

Package

s-http-server

Source

http-server.lisp (file)

Function: static-resource-handler S-HTTP-SERVER HANDLER HTTP-REQUEST STREAM

Host static resources from a document root

Package

s-http-server

Source

handlers.lisp (file)

Function: toggle-connection-pooling S-HTTP-SERVER ON-OFF

Turn (global) connection pooling on or off

Package

s-http-server

Source

tools.lisp (file)

Function: wrap-with-basic-authentication HANDLER-FUNCTION &key ARGUMENTS AUTHENTICATOR REALM

Creates and returns a new handler that wraps handler-function and argument with basic authentication. Authenticator is either a dotted alist of usernames and passwords or a function accepting (username . password). Realm is for use in the WWW-Authenticate header response.

Package

s-http-server

Source

handlers.lisp (file)

Function: write-http-response-headers HEADERS STREAM

Write the headers alist as HTTP Response Headers to stream

Package

s-http-server

Source

http-server.lisp (file)

Function: write-http-response-line STRING &optional STREAM

Write string to stream, ending with the HTTP end of line convention (CR+LF)

Package

s-http-server

Source

http-server.lisp (file)

Function: write-http-response-status-line STREAM &optional STATUS-CODE STRING HTTP-VERSION

Write an HTTP Response Status line to stream, using status-code string and http-version

Package

s-http-server

Source

http-server.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.3 Generic functions

Generic Function: find-handler SERVER HTTP-REQUEST

Given http-request select a handler from server

Package

s-http-server

Source

http-server.lisp (file)

Methods
Method: find-handler (S-HTTP-SERVER s-http-server) HTTP-REQUEST
Generic Function: get-access-log-stream OBJECT

Get the current stream used by this S-HTTP-SERVER for access logging, nil means no logging

Package

s-http-server

Writer

(setf get-access-log-stream) (generic function)

Methods
Method: get-access-log-stream (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-access-log-stream) NEW-VALUE OBJECT

Set the stream this S-HTTP-SERVER uses for access logging, nil means no logging

Package

s-http-server

Reader

get-access-log-stream (generic function)

Methods
Method: (setf get-access-log-stream) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-boot-time OBJECT

Get the universal time when this S-HTTP-SERVER was last started, nil if not running

Package

s-http-server

Writer

(setf get-boot-time) (generic function)

Methods
Method: get-boot-time (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-boot-time) NEW-VALUE OBJECT
Package

s-http-server

Reader

get-boot-time (generic function)

Methods
Method: (setf get-boot-time) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-byte-buffer HTTP-CONNECTION
Package

s-http-server

Methods
Method: get-byte-buffer (HTTP-CONNECTION http-connection)
Source

handlers.lisp (file)

Generic Function: get-contexts OBJECT

Get the current list of context bindings used by this S-HTTP-SERVER

Package

s-http-server

Writer

(setf get-contexts) (generic function)

Methods
Method: get-contexts (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-contexts) NEW-VALUE OBJECT
Package

s-http-server

Reader

get-contexts (generic function)

Methods
Method: (setf get-contexts) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-debug-mode OBJECT

Get the current mode of debugging of this S-HTTP-SERVER, t is on, nil is off

Package

s-http-server

Writer

(setf get-debug-mode) (generic function)

Methods
Method: get-debug-mode (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-debug-mode) NEW-VALUE OBJECT

Set the current debugging mode of this S-HTTP-SERVER, t is on, nil is off

Package

s-http-server

Reader

get-debug-mode (generic function)

Methods
Method: (setf get-debug-mode) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-full-path HTTP-REQUEST

Get the full path of this HTTP request (including the query)

Package

s-http-server

Source

http-server.lisp (file)

Methods
Method: get-full-path (HTTP-REQUEST http-request)
Generic Function: get-gzip-compressor HTTP-CONNECTION
Package

s-http-server

Methods
Method: get-gzip-compressor (HTTP-CONNECTION http-connection)
Source

handlers.lisp (file)

Generic Function: get-headers OBJECT

Get the dotted alist (:keyword . ’value’) of request headers of this HTTP request

Package

s-http-server

Writer

(setf get-headers) (generic function)

Methods
Method: get-headers (HTTP-REQUEST http-request)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-headers) NEW-VALUE OBJECT
Package

s-http-server

Reader

get-headers (generic function)

Methods
Method: (setf get-headers) NEW-VALUE (HTTP-REQUEST http-request)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-http-connection OBJECT

The HTTP connection this request belongs to, nil if not set

Package

s-http-server

Writer

(setf get-http-connection) (generic function)

Methods
Method: get-http-connection (HTTP-REQUEST http-request)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-http-connection) NEW-VALUE OBJECT
Package

s-http-server

Reader

get-http-connection (generic function)

Methods
Method: (setf get-http-connection) NEW-VALUE (HTTP-REQUEST http-request)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-http-connections OBJECT
Generic Function: (setf get-http-connections) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-http-connections (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-http-connections) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-http-server OBJECT

Get the HTTP server this object belongs to, nil if not set

Package

s-http-server

Writer

(setf get-http-server) (generic function)

Methods
Method: get-http-server (HTTP-CONNECTION http-connection)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-http-server) NEW-VALUE OBJECT
Package

s-http-server

Reader

get-http-server (generic function)

Methods
Method: (setf get-http-server) NEW-VALUE (HTTP-CONNECTION http-connection)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-http-version OBJECT

Get the HTTP version string of this HTTP request

Package

s-http-server

Writer

(setf get-http-version) (generic function)

Methods
Method: get-http-version (HTTP-REQUEST http-request)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-http-version) NEW-VALUE OBJECT
Package

s-http-server

Reader

get-http-version (generic function)

Methods
Method: (setf get-http-version) NEW-VALUE (HTTP-REQUEST http-request)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-keep-alive OBJECT

Is this a keep-alive request (either 1.0 or 1.1)

Package

s-http-server

Writer

(setf get-keep-alive) (generic function)

Methods
Method: get-keep-alive (HTTP-REQUEST http-request)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-keep-alive) NEW-VALUE OBJECT
Package

s-http-server

Reader

get-keep-alive (generic function)

Methods
Method: (setf get-keep-alive) NEW-VALUE (HTTP-REQUEST http-request)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-line-buffer OBJECT
Generic Function: (setf get-line-buffer) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-line-buffer (HTTP-CONNECTION http-connection)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-line-buffer) NEW-VALUE (HTTP-CONNECTION http-connection)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-log-stream OBJECT

Get the current stream used by this S-HTTP-SERVER for general logging, nil means no logging

Package

s-http-server

Writer

(setf get-log-stream) (generic function)

Methods
Method: get-log-stream (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-log-stream) NEW-VALUE OBJECT

Set the stream this S-HTTP-SERVER uses for general logging, nil means no logging

Package

s-http-server

Reader

get-log-stream (generic function)

Methods
Method: (setf get-log-stream) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-method OBJECT

Get the method (keyword :get :put :post :delete ..) of this HTTP request

Package

s-http-server

Writer

(setf get-method) (generic function)

Methods
Method: get-method (HTTP-REQUEST http-request)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-method) NEW-VALUE OBJECT
Package

s-http-server

Reader

get-method (generic function)

Methods
Method: (setf get-method) NEW-VALUE (HTTP-REQUEST http-request)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-name OBJECT

Get the current name of this S-HTTP-SERVER

Package

s-http-server

Writer

(setf get-name) (generic function)

Methods
Method: get-name (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-name) NEW-VALUE OBJECT

Set the name of this S-HTTP-SERVER

Package

s-http-server

Reader

get-name (generic function)

Methods
Method: (setf get-name) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-path HTTP-REQUEST

Get the path of this HTTP request

Package

s-http-server

Source

http-server.lisp (file)

Methods
Method: get-path (HTTP-REQUEST http-request)
Generic Function: get-port OBJECT

Get the TCP port used by this S-HTTP-SERVER

Package

s-http-server

Writer

(setf get-port) (generic function)

Methods
Method: get-port (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-port) NEW-VALUE OBJECT

Set the port of this S-HTTP-SERVER (before starting the server)

Package

s-http-server

Reader

get-port (generic function)

Methods
Method: (setf get-port) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-server-process OBJECT

Get the current server process used by this S-HTTP-SERVER, nil if not running

Package

s-http-server

Writer

(setf get-server-process) (generic function)

Methods
Method: get-server-process (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-server-process) NEW-VALUE OBJECT
Package

s-http-server

Reader

get-server-process (generic function)

Methods
Method: (setf get-server-process) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-uri OBJECT

Get the URI object of this HTTP request

Package

s-http-server

Writer

(setf get-uri) (generic function)

Methods
Method: get-uri (HTTP-REQUEST http-request)

automatically generated reader method

Source

http-server.lisp (file)

Generic Function: (setf get-uri) NEW-VALUE OBJECT
Package

s-http-server

Reader

get-uri (generic function)

Methods
Method: (setf get-uri) NEW-VALUE (HTTP-REQUEST http-request)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-user OBJECT
Generic Function: (setf get-user) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-user (HTTP-REQUEST http-request)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-user) NEW-VALUE (HTTP-REQUEST http-request)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: handle-http-server-connection SERVER HTTP-CONNECTION

Handle connection requests

Package

s-http-server

Source

http-server.lisp (file)

Methods
Method: handle-http-server-connection (S-HTTP-SERVER s-http-server) HTTP-CONNECTION
Generic Function: logm SERVER KIND FORMAT-STRING &rest ARGS

Log a formatted message

Package

s-http-server

Source

http-server.lisp (file)

Methods
Method: logm (S-HTTP-SERVER s-http-server) KIND FORMAT-STRING &rest ARGS
Generic Function: register-context-handler SERVER CONTEXT-PREFIX HANDLER-FUNCTION &key ARGUMENTS AT-END-P DO-NOT-REPLACE-P

Configure server so that every request starting with context-prefix is sent to handler-function

Package

s-http-server

Source

http-server.lisp (file)

Methods
Method: register-context-handler (S-HTTP-SERVER s-http-server) CONTEXT-PREFIX HANDLER-FUNCTION &key ARGUMENTS AT-END-P DO-NOT-REPLACE-P
Generic Function: start-server SERVER

Start the server

Package

s-http-server

Source

http-server.lisp (file)

Methods
Method: start-server (S-HTTP-SERVER s-http-server)
Generic Function: stop-server SERVER

Stop the server

Package

s-http-server

Source

http-server.lisp (file)

Methods
Method: stop-server (S-HTTP-SERVER s-http-server)
Generic Function: unregister-context-handler SERVER CONTEXT-PREFIX &key ONLY-FIRST-P ONLY-LAST-P

Remove any configuration of server for context-prefix

Package

s-http-server

Source

http-server.lisp (file)

Methods
Method: unregister-context-handler (S-HTTP-SERVER s-http-server) CONTEXT-PREFIX &key ONLY-FIRST-P ONLY-LAST-P

Previous: , Up: Exported definitions   [Contents][Index]

6.1.4 Classes

Class: http-request ()

The object representing an HTTP request as being handled by the S-HTTP-SERVER

Package

s-http-server

Source

http-server.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: method
Initargs

:method

Initform

:get

Readers

get-method (generic function)

Writers

(setf get-method) (generic function)

Slot: uri
Initargs

:uri

Initform

(puri:parse-uri "/")

Readers

get-uri (generic function)

Writers

(setf get-uri) (generic function)

Slot: http-version
Initargs

:http-version

Initform

"http/1.1"

Readers

get-http-version (generic function)

Writers

(setf get-http-version) (generic function)

Slot: headers
Initargs

:headers

Initform

(quote nil)

Readers

get-headers (generic function)

Writers

(setf get-headers) (generic function)

Slot: keep-alive
Initargs

:keep-alive

Initform

(s-sysdeps:multiprocessing-capable-p)

Readers

get-keep-alive (generic function)

Writers

(setf get-keep-alive) (generic function)

Slot: user
Readers

get-user (generic function)

Writers

(setf get-user) (generic function)

Slot: http-connection
Readers

get-http-connection (generic function)

Writers

(setf get-http-connection) (generic function)

Class: s-http-server ()

The object representing a minimal standalone HTTP Server

Package

s-http-server

Source

http-server.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: port
Initargs

:port

Initform

s-http-server:*http-server-port*

Readers

get-port (generic function)

Writers

(setf get-port) (generic function)

Slot: name
Initargs

:name

Initform

"s-http-server"

Readers

get-name (generic function)

Writers

(setf get-name) (generic function)

Slot: debug-mode
Initargs

:debug-mode

Initform

t

Readers

get-debug-mode (generic function)

Writers

(setf get-debug-mode) (generic function)

Slot: server-process
Readers

get-server-process (generic function)

Writers

(setf get-server-process) (generic function)

Slot: http-connections
Readers

get-http-connections (generic function)

Writers

(setf get-http-connections) (generic function)

Slot: log-stream
Initargs

:log-stream

Readers

get-log-stream (generic function)

Writers

(setf get-log-stream) (generic function)

Slot: access-log-stream
Initargs

:access-log-stream

Readers

get-access-log-stream (generic function)

Writers

(setf get-access-log-stream) (generic function)

Slot: log-lock
Initform

(s-sysdeps:make-process-lock "s-http-server-log-lock")

Readers

get-log-lock (generic function)

Writers

(setf get-log-lock) (generic function)

Slot: boot-time
Readers

get-boot-time (generic function)

Writers

(setf get-boot-time) (generic function)

Slot: last-periodic-check
Initform

(get-universal-time)

Readers

get-last-periodic-check (generic function)

Writers

(setf get-last-periodic-check) (generic function)

Slot: contexts
Initargs

:contexts

Readers

get-contexts (generic function)

Writers

(setf get-contexts) (generic function)


Previous: , Up: Definitions   [Contents][Index]

6.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.1 Special variables

Special Variable: *doctype-html-401-strict*
Package

s-http-server

Source

globals.lisp (file)

Special Variable: *doctype-html-401-transitional*
Package

s-http-server

Source

globals.lisp (file)

Special Variable: *mime-type-suffix-map*

Hashtable mapping suffixes to mime-types, computed at run-time

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +access-log-format+

Either :common-log-format or :extended-common-log-format

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +allowed-connection-keepalive-age+

Number of seconds a kept alive connection is allowed to be inactive (Apache default)

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +allowed-connection-pooled-age+

Number of seconds a pooled connection is allowed to exist

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +allowed-http-methods+

The HTTP methods that we allow in the request line

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +allowed-keepalive-connections+

Maximum number of simulataneous kept alive connections (hard resoure limit)

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +allowed-pooled-connections+

Maximum number of inactive connections allowed in the pool

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +basic-mime-type-suffix-map+

Fallback for when no mime-type info can be loaded from a known location

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +common-log-timestamp-format+
Package

s-http-server

Source

globals.lisp (file)

Special Variable: +common-request-headers+
Package

s-http-server

Source

globals.lisp (file)

Special Variable: +compressible-mime-types+

The list of mime-types that can/should be gzip compressed

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +known-mime.type-locations+

Places to search for a system level mime-type to suffix map

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +period-check-interval+

Do some periodic checks every 5 seconds

Package

s-http-server

Source

globals.lisp (file)

Special Variable: +pool-connections+

If t, pool connections, reusing processes and resources

Package

s-http-server

Source

globals.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.2 Functions

Function: authorized-p BASIC-AUTHORIZATION AUTHENTICATOR

Check whether a basic-authorization is authorized by authenticator

Package

s-http-server

Source

handlers.lisp (file)

Function: basic-authentication-required-http-response HTTP-REQUEST STREAM REALM
Package

s-http-server

Source

handlers.lisp (file)

Function: compute-real-resource-pathname ROOT PATH CONTEXT PATHNAME-BUILDER
Package

s-http-server

Source

handlers.lisp (file)

Function: decode-basic-authorization AUTHORIZATION

Decode the Base64 encoding of username:password returning (username . password)

Package

s-http-server

Source

handlers.lisp (file)

Function: dw-bench S-HTTP-SERVER HANDLER HTTP-REQUEST STREAM
Package

s-http-server

Source

handlers.lisp (file)

Function: echo-debug-handler S-HTTP-SERVER HANDLER HTTP-REQUEST STREAM

An echoing testing/debugging handler returning a simple text/plain status/echo/snoop page

Package

s-http-server

Source

handlers.lisp (file)

Function: escape STRING
Package

s-http-server

Source

http-server.lisp (file)

Function: format-http-response-line STREAM FORMAT-STRING &rest ARGS
Package

s-http-server

Source

http-server.lisp (file)

Function: header-field-name->keyword STRING &optional START END
Package

s-http-server

Source

http-server.lisp (file)

Function: header-field-value->string STRING &optional START END
Package

s-http-server

Source

http-server.lisp (file)

Function: hello-world S-HTTP-SERVER HANDLER HTTP-REQUEST STREAM
Package

s-http-server

Source

handlers.lisp (file)

Function: host-static-bytes HTTP-REQUEST STREAM BYTES &key EXPIRES-MAX-AGE MIME-TYPE LAST-MODIFIED START END

Return (values t <response-code> <size>) handling condition GET as well

Package

s-http-server

Source

handlers.lisp (file)

Function: host-static-resource HTTP-REQUEST STREAM RESOURCE-PATHNAME &key EXPIRES-MAX-AGE

Return (values t <response-code> <size>) handling conditional GET as well

Package

s-http-server

Source

handlers.lisp (file)

Function: make-real-resource-pathname ROOT-DIR-COMPONENTS URI-DIR-COMPONENTS NAME TYPE
Package

s-http-server

Source

handlers.lisp (file)

Function: mime-type-for-pathname PATHNAME
Package

s-http-server

Source

handlers.lisp (file)

Function: mime-type-suffix-map ()
Package

s-http-server

Source

handlers.lisp (file)

Function: parse-http-date STRING

Return the CL universal-time represented in string using GMT HTTP Date format, or nil on error

Package

s-http-server

Source

http-server.lisp (file)

Function: parse-http-request STREAM LINE-BUFFER
Package

s-http-server

Source

http-server.lisp (file)

Function: parse-http-request-headers STREAM LINE-BUFFER
Package

s-http-server

Source

http-server.lisp (file)

Function: parse-http-request-line STREAM LINE-BUFFER
Package

s-http-server

Source

http-server.lisp (file)

Function: ps-handler S-HTTP-SERVER HANDLER HTTP-REQUEST STREAM

Show the state of all http connections known to the server

Package

s-http-server

Source

handlers.lisp (file)

Function: random-handler S-HTTP-SERVER HANDLER HTTP-REQUEST STREAM

Return a random hex string of a specified size

Package

s-http-server

Source

handlers.lisp (file)

Function: read-crlf-line LINE-BUFFER STREAM &optional EOF-ERROR-P EOF-VALUE

Read a CRLF termintated line from a character input stream into line-buffer. Return length excluding CRLF.

Package

s-http-server

Source

http-server.lisp (file)

Function: response-date &optional UNIVERSAL-TIME

Generate a GMT HTTP Response Date

Package

s-http-server

Source

http-server.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.3 Generic functions

Generic Function: cleanup-all-pooled-connections S-HTTP-SERVER
Package

s-http-server

Methods
Method: cleanup-all-pooled-connections (S-HTTP-SERVER s-http-server)

Kill all pooled connections

Source

tools.lisp (file)

Generic Function: cleanup-connections S-HTTP-SERVER &key FILTER SELECTOR DO-NOT-POOL THRESHOLD
Package

s-http-server

Methods
Method: cleanup-connections (S-HTTP-SERVER s-http-server) &key FILTER SELECTOR DO-NOT-POOL THRESHOLD
Source

http-server.lisp (file)

Generic Function: cleanup-dead-connections S-HTTP-SERVER
Package

s-http-server

Methods
Method: cleanup-dead-connections (S-HTTP-SERVER s-http-server)
Source

http-server.lisp (file)

Generic Function: cleanup-excess-alive-connections S-HTTP-SERVER
Package

s-http-server

Methods
Method: cleanup-excess-alive-connections (S-HTTP-SERVER s-http-server)
Source

http-server.lisp (file)

Generic Function: cleanup-excess-pooled-connections S-HTTP-SERVER
Package

s-http-server

Methods
Method: cleanup-excess-pooled-connections (S-HTTP-SERVER s-http-server)
Source

http-server.lisp (file)

Generic Function: cleanup-old-connections S-HTTP-SERVER
Package

s-http-server

Methods
Method: cleanup-old-connections (S-HTTP-SERVER s-http-server)
Source

http-server.lisp (file)

Generic Function: cleanup-old-pooled-connections S-HTTP-SERVER
Package

s-http-server

Methods
Method: cleanup-old-pooled-connections (S-HTTP-SERVER s-http-server)
Source

http-server.lisp (file)

Generic Function: do-periodic-check S-HTTP-SERVER
Package

s-http-server

Methods
Method: do-periodic-check (S-HTTP-SERVER s-http-server)
Source

http-server.lisp (file)

Generic Function: flush-log-streams S-HTTP-SERVER
Package

s-http-server

Methods
Method: flush-log-streams (S-HTTP-SERVER s-http-server)
Source

http-server.lisp (file)

Generic Function: get-age HTTP-CONNECTION
Package

s-http-server

Methods
Method: get-age (HTTP-CONNECTION http-connection)
Source

http-server.lisp (file)

Generic Function: get-id OBJECT
Generic Function: (setf get-id) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-id (HTTP-CONNECTION http-connection)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-id) NEW-VALUE (HTTP-CONNECTION http-connection)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-last-periodic-check OBJECT
Generic Function: (setf get-last-periodic-check) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-last-periodic-check (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-last-periodic-check) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-log-lock OBJECT
Generic Function: (setf get-log-lock) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-log-lock (S-HTTP-SERVER s-http-server)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-log-lock) NEW-VALUE (S-HTTP-SERVER s-http-server)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-process OBJECT
Generic Function: (setf get-process) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-process (HTTP-CONNECTION http-connection)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-process) NEW-VALUE (HTTP-CONNECTION http-connection)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-request-count OBJECT
Generic Function: (setf get-request-count) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-request-count (HTTP-CONNECTION http-connection)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-request-count) NEW-VALUE (HTTP-CONNECTION http-connection)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-state OBJECT
Generic Function: (setf get-state) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-state (HTTP-CONNECTION http-connection)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-state) NEW-VALUE (HTTP-CONNECTION http-connection)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-stream OBJECT
Generic Function: (setf get-stream) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-stream (HTTP-CONNECTION http-connection)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-stream) NEW-VALUE (HTTP-CONNECTION http-connection)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: get-timestamp OBJECT
Generic Function: (setf get-timestamp) NEW-VALUE OBJECT
Package

s-http-server

Methods
Method: get-timestamp (HTTP-CONNECTION http-connection)

automatically generated reader method

Source

http-server.lisp (file)

Method: (setf get-timestamp) NEW-VALUE (HTTP-CONNECTION http-connection)

automatically generated writer method

Source

http-server.lisp (file)

Generic Function: handle-new-http-server-connection S-HTTP-SERVER SOCKET-STREAM CONNECTION-ID
Package

s-http-server

Methods
Method: handle-new-http-server-connection (S-HTTP-SERVER s-http-server) SOCKET-STREAM CONNECTION-ID
Source

http-server.lisp (file)

Generic Function: handle-one-http-request-response S-HTTP-SERVER HTTP-CONNECTION
Package

s-http-server

Methods
Method: handle-one-http-request-response (S-HTTP-SERVER s-http-server) HTTP-CONNECTION
Source

http-server.lisp (file)

Generic Function: kill-connection HTTP-CONNECTION &optional DO-NOT-POOL
Package

s-http-server

Methods
Method: kill-connection (HTTP-CONNECTION http-connection) &optional DO-NOT-POOL
Source

http-server.lisp (file)

Generic Function: log-access S-HTTP-SERVER HTTP-CONNECTION HTTP-REQUEST RESPONSE BYTES
Package

s-http-server

Methods
Method: log-access (S-HTTP-SERVER s-http-server) HTTP-CONNECTION HTTP-REQUEST RESPONSE BYTES
Source

http-server.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.4 Conditions

Condition: bogus-http-request-method ()
Package

s-http-server

Source

http-server.lisp (file)

Direct superclasses

http-request-error (condition)

Condition: bogus-http-request-uri ()
Package

s-http-server

Source

http-server.lisp (file)

Direct superclasses

http-request-error (condition)

Condition: http-request-error ()
Package

s-http-server

Source

http-server.lisp (file)

Direct superclasses

error (condition)

Direct subclasses
Condition: missing-http-request-line ()
Package

s-http-server

Source

http-server.lisp (file)

Direct superclasses

http-request-error (condition)


Previous: , Up: Internal definitions   [Contents][Index]

6.2.5 Classes

Class: http-connection ()

The object representing a kept-alive HTTP connection and handling process

Package

s-http-server

Source

http-server.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: id
Initargs

:id

Initform

-1

Readers

get-id (generic function)

Writers

(setf get-id) (generic function)

Slot: state
Type

(member :new :active :pooled :dead)

Initform

:new

Readers

get-state (generic function)

Writers

(setf get-state) (generic function)

Slot: stream
Initargs

:stream

Readers

get-stream (generic function)

Writers

(setf get-stream) (generic function)

Slot: process
Initargs

:process

Readers

get-process (generic function)

Writers

(setf get-process) (generic function)

Slot: line-buffer
Initform

(make-array 256 :element-type (quote character) :adjustable t)

Readers

get-line-buffer (generic function)

Writers

(setf get-line-buffer) (generic function)

Slot: byte-buffer
Slot: gzip-compressor
Slot: request-count
Initform

0

Readers

get-request-count (generic function)

Writers

(setf get-request-count) (generic function)

Slot: timestamp
Initform

(get-universal-time)

Readers

get-timestamp (generic function)

Writers

(setf get-timestamp) (generic function)

Slot: http-server
Initargs

:server

Readers

get-http-server (generic function)

Writers

(setf get-http-server) (generic function)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   M   S  
Index Entry  Section

F
File, Lisp, s-http-server.asd: The s-http-server<dot>asd file
File, Lisp, s-http-server/src/globals.lisp: The s-http-server/src/globals<dot>lisp file
File, Lisp, s-http-server/src/handlers.lisp: The s-http-server/src/handlers<dot>lisp file
File, Lisp, s-http-server/src/http-server.lisp: The s-http-server/src/http-server<dot>lisp file
File, Lisp, s-http-server/src/package.lisp: The s-http-server/src/package<dot>lisp file
File, Lisp, s-http-server/src/tools.lisp: The s-http-server/src/tools<dot>lisp file

L
Lisp File, s-http-server.asd: The s-http-server<dot>asd file
Lisp File, s-http-server/src/globals.lisp: The s-http-server/src/globals<dot>lisp file
Lisp File, s-http-server/src/handlers.lisp: The s-http-server/src/handlers<dot>lisp file
Lisp File, s-http-server/src/http-server.lisp: The s-http-server/src/http-server<dot>lisp file
Lisp File, s-http-server/src/package.lisp: The s-http-server/src/package<dot>lisp file
Lisp File, s-http-server/src/tools.lisp: The s-http-server/src/tools<dot>lisp file

M
Module, s-http-server/src: The s-http-server/src module

S
s-http-server.asd: The s-http-server<dot>asd file
s-http-server/src: The s-http-server/src module
s-http-server/src/globals.lisp: The s-http-server/src/globals<dot>lisp file
s-http-server/src/handlers.lisp: The s-http-server/src/handlers<dot>lisp file
s-http-server/src/http-server.lisp: The s-http-server/src/http-server<dot>lisp file
s-http-server/src/package.lisp: The s-http-server/src/package<dot>lisp file
s-http-server/src/tools.lisp: The s-http-server/src/tools<dot>lisp file

Jump to:   F   L   M   S  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   (  
A   B   C   D   E   F   G   H   K   L   M   P   R   S   T   U   W  
Index Entry  Section

(
(setf get-access-log-stream): Exported generic functions
(setf get-access-log-stream): Exported generic functions
(setf get-boot-time): Exported generic functions
(setf get-boot-time): Exported generic functions
(setf get-contexts): Exported generic functions
(setf get-contexts): Exported generic functions
(setf get-debug-mode): Exported generic functions
(setf get-debug-mode): Exported generic functions
(setf get-headers): Exported generic functions
(setf get-headers): Exported generic functions
(setf get-http-connection): Exported generic functions
(setf get-http-connection): Exported generic functions
(setf get-http-connections): Exported generic functions
(setf get-http-connections): Exported generic functions
(setf get-http-server): Exported generic functions
(setf get-http-server): Exported generic functions
(setf get-http-version): Exported generic functions
(setf get-http-version): Exported generic functions
(setf get-id): Internal generic functions
(setf get-id): Internal generic functions
(setf get-keep-alive): Exported generic functions
(setf get-keep-alive): Exported generic functions
(setf get-last-periodic-check): Internal generic functions
(setf get-last-periodic-check): Internal generic functions
(setf get-line-buffer): Exported generic functions
(setf get-line-buffer): Exported generic functions
(setf get-log-lock): Internal generic functions
(setf get-log-lock): Internal generic functions
(setf get-log-stream): Exported generic functions
(setf get-log-stream): Exported generic functions
(setf get-method): Exported generic functions
(setf get-method): Exported generic functions
(setf get-name): Exported generic functions
(setf get-name): Exported generic functions
(setf get-port): Exported generic functions
(setf get-port): Exported generic functions
(setf get-process): Internal generic functions
(setf get-process): Internal generic functions
(setf get-request-count): Internal generic functions
(setf get-request-count): Internal generic functions
(setf get-server-process): Exported generic functions
(setf get-server-process): Exported generic functions
(setf get-state): Internal generic functions
(setf get-state): Internal generic functions
(setf get-stream): Internal generic functions
(setf get-stream): Internal generic functions
(setf get-timestamp): Internal generic functions
(setf get-timestamp): Internal generic functions
(setf get-uri): Exported generic functions
(setf get-uri): Exported generic functions
(setf get-user): Exported generic functions
(setf get-user): Exported generic functions

A
accepts-gzip-encoding-p: Exported functions
authorized-p: Internal functions

B
basic-authentication-required-http-response: Internal functions

C
cleanup-all-pooled-connections: Internal generic functions
cleanup-all-pooled-connections: Internal generic functions
cleanup-connections: Internal generic functions
cleanup-connections: Internal generic functions
cleanup-dead-connections: Internal generic functions
cleanup-dead-connections: Internal generic functions
cleanup-excess-alive-connections: Internal generic functions
cleanup-excess-alive-connections: Internal generic functions
cleanup-excess-pooled-connections: Internal generic functions
cleanup-excess-pooled-connections: Internal generic functions
cleanup-old-connections: Internal generic functions
cleanup-old-connections: Internal generic functions
cleanup-old-pooled-connections: Internal generic functions
cleanup-old-pooled-connections: Internal generic functions
compressible-mime-type-p: Exported functions
compute-real-resource-pathname: Internal functions
configure-default-handlers: Exported functions

D
decode-basic-authorization: Internal functions
do-periodic-check: Internal generic functions
do-periodic-check: Internal generic functions
dw-bench: Internal functions

E
echo-debug-handler: Internal functions
escape: Internal functions

F
favicon-handler: Exported functions
find-handler: Exported generic functions
find-handler: Exported generic functions
flush-log-streams: Internal generic functions
flush-log-streams: Internal generic functions
format-http-response-line: Internal functions
Function, accepts-gzip-encoding-p: Exported functions
Function, authorized-p: Internal functions
Function, basic-authentication-required-http-response: Internal functions
Function, compressible-mime-type-p: Exported functions
Function, compute-real-resource-pathname: Internal functions
Function, configure-default-handlers: Exported functions
Function, decode-basic-authorization: Internal functions
Function, dw-bench: Internal functions
Function, echo-debug-handler: Internal functions
Function, escape: Internal functions
Function, favicon-handler: Exported functions
Function, format-http-response-line: Internal functions
Function, gzip-compress: Exported functions
Function, header-field-name->keyword: Internal functions
Function, header-field-value->string: Internal functions
Function, hello-world: Internal functions
Function, host-static-bytes: Internal functions
Function, host-static-resource: Internal functions
Function, make-real-resource-pathname: Internal functions
Function, make-s-http-server: Exported functions
Function, mime-type-for-pathname: Internal functions
Function, mime-type-suffix-map: Internal functions
Function, parse-http-date: Internal functions
Function, parse-http-request: Internal functions
Function, parse-http-request-headers: Internal functions
Function, parse-http-request-line: Internal functions
Function, ps: Exported functions
Function, ps-handler: Internal functions
Function, random-handler: Internal functions
Function, read-crlf-line: Internal functions
Function, redirect-handler: Exported functions
Function, request-header-value: Exported functions
Function, response-date: Internal functions
Function, s-http-server-handler: Exported functions
Function, standard-http-html-error-response: Exported functions
Function, standard-http-html-message-response: Exported functions
Function, standard-http-response-headers: Exported functions
Function, static-resource-handler: Exported functions
Function, toggle-connection-pooling: Exported functions
Function, wrap-with-basic-authentication: Exported functions
Function, write-http-response-headers: Exported functions
Function, write-http-response-line: Exported functions
Function, write-http-response-status-line: Exported functions

G
Generic Function, (setf get-access-log-stream): Exported generic functions
Generic Function, (setf get-boot-time): Exported generic functions
Generic Function, (setf get-contexts): Exported generic functions
Generic Function, (setf get-debug-mode): Exported generic functions
Generic Function, (setf get-headers): Exported generic functions
Generic Function, (setf get-http-connection): Exported generic functions
Generic Function, (setf get-http-connections): Exported generic functions
Generic Function, (setf get-http-server): Exported generic functions
Generic Function, (setf get-http-version): Exported generic functions
Generic Function, (setf get-id): Internal generic functions
Generic Function, (setf get-keep-alive): Exported generic functions
Generic Function, (setf get-last-periodic-check): Internal generic functions
Generic Function, (setf get-line-buffer): Exported generic functions
Generic Function, (setf get-log-lock): Internal generic functions
Generic Function, (setf get-log-stream): Exported generic functions
Generic Function, (setf get-method): Exported generic functions
Generic Function, (setf get-name): Exported generic functions
Generic Function, (setf get-port): Exported generic functions
Generic Function, (setf get-process): Internal generic functions
Generic Function, (setf get-request-count): Internal generic functions
Generic Function, (setf get-server-process): Exported generic functions
Generic Function, (setf get-state): Internal generic functions
Generic Function, (setf get-stream): Internal generic functions
Generic Function, (setf get-timestamp): Internal generic functions
Generic Function, (setf get-uri): Exported generic functions
Generic Function, (setf get-user): Exported generic functions
Generic Function, cleanup-all-pooled-connections: Internal generic functions
Generic Function, cleanup-connections: Internal generic functions
Generic Function, cleanup-dead-connections: Internal generic functions
Generic Function, cleanup-excess-alive-connections: Internal generic functions
Generic Function, cleanup-excess-pooled-connections: Internal generic functions
Generic Function, cleanup-old-connections: Internal generic functions
Generic Function, cleanup-old-pooled-connections: Internal generic functions
Generic Function, do-periodic-check: Internal generic functions
Generic Function, find-handler: Exported generic functions
Generic Function, flush-log-streams: Internal generic functions
Generic Function, get-access-log-stream: Exported generic functions
Generic Function, get-age: Internal generic functions
Generic Function, get-boot-time: Exported generic functions
Generic Function, get-byte-buffer: Exported generic functions
Generic Function, get-contexts: Exported generic functions
Generic Function, get-debug-mode: Exported generic functions
Generic Function, get-full-path: Exported generic functions
Generic Function, get-gzip-compressor: Exported generic functions
Generic Function, get-headers: Exported generic functions
Generic Function, get-http-connection: Exported generic functions
Generic Function, get-http-connections: Exported generic functions
Generic Function, get-http-server: Exported generic functions
Generic Function, get-http-version: Exported generic functions
Generic Function, get-id: Internal generic functions
Generic Function, get-keep-alive: Exported generic functions
Generic Function, get-last-periodic-check: Internal generic functions
Generic Function, get-line-buffer: Exported generic functions
Generic Function, get-log-lock: Internal generic functions
Generic Function, get-log-stream: Exported generic functions
Generic Function, get-method: Exported generic functions
Generic Function, get-name: Exported generic functions
Generic Function, get-path: Exported generic functions
Generic Function, get-port: Exported generic functions
Generic Function, get-process: Internal generic functions
Generic Function, get-request-count: Internal generic functions
Generic Function, get-server-process: Exported generic functions
Generic Function, get-state: Internal generic functions
Generic Function, get-stream: Internal generic functions
Generic Function, get-timestamp: Internal generic functions
Generic Function, get-uri: Exported generic functions
Generic Function, get-user: Exported generic functions
Generic Function, handle-http-server-connection: Exported generic functions
Generic Function, handle-new-http-server-connection: Internal generic functions
Generic Function, handle-one-http-request-response: Internal generic functions
Generic Function, kill-connection: Internal generic functions
Generic Function, log-access: Internal generic functions
Generic Function, logm: Exported generic functions
Generic Function, register-context-handler: Exported generic functions
Generic Function, start-server: Exported generic functions
Generic Function, stop-server: Exported generic functions
Generic Function, unregister-context-handler: Exported generic functions
get-access-log-stream: Exported generic functions
get-access-log-stream: Exported generic functions
get-age: Internal generic functions
get-age: Internal generic functions
get-boot-time: Exported generic functions
get-boot-time: Exported generic functions
get-byte-buffer: Exported generic functions
get-byte-buffer: Exported generic functions
get-contexts: Exported generic functions
get-contexts: Exported generic functions
get-debug-mode: Exported generic functions
get-debug-mode: Exported generic functions
get-full-path: Exported generic functions
get-full-path: Exported generic functions
get-gzip-compressor: Exported generic functions
get-gzip-compressor: Exported generic functions
get-headers: Exported generic functions
get-headers: Exported generic functions
get-http-connection: Exported generic functions
get-http-connection: Exported generic functions
get-http-connections: Exported generic functions
get-http-connections: Exported generic functions
get-http-server: Exported generic functions
get-http-server: Exported generic functions
get-http-version: Exported generic functions
get-http-version: Exported generic functions
get-id: Internal generic functions
get-id: Internal generic functions
get-keep-alive: Exported generic functions
get-keep-alive: Exported generic functions
get-last-periodic-check: Internal generic functions
get-last-periodic-check: Internal generic functions
get-line-buffer: Exported generic functions
get-line-buffer: Exported generic functions
get-log-lock: Internal generic functions
get-log-lock: Internal generic functions
get-log-stream: Exported generic functions
get-log-stream: Exported generic functions
get-method: Exported generic functions
get-method: Exported generic functions
get-name: Exported generic functions
get-name: Exported generic functions
get-path: Exported generic functions
get-path: Exported generic functions
get-port: Exported generic functions
get-port: Exported generic functions
get-process: Internal generic functions
get-process: Internal generic functions
get-request-count: Internal generic functions
get-request-count: Internal generic functions
get-server-process: Exported generic functions
get-server-process: Exported generic functions
get-state: Internal generic functions
get-state: Internal generic functions
get-stream: Internal generic functions
get-stream: Internal generic functions
get-timestamp: Internal generic functions
get-timestamp: Internal generic functions
get-uri: Exported generic functions
get-uri: Exported generic functions
get-user: Exported generic functions
get-user: Exported generic functions
gzip-compress: Exported functions

H
handle-http-server-connection: Exported generic functions
handle-http-server-connection: Exported generic functions
handle-new-http-server-connection: Internal generic functions
handle-new-http-server-connection: Internal generic functions
handle-one-http-request-response: Internal generic functions
handle-one-http-request-response: Internal generic functions
header-field-name->keyword: Internal functions
header-field-value->string: Internal functions
hello-world: Internal functions
host-static-bytes: Internal functions
host-static-resource: Internal functions

K
kill-connection: Internal generic functions
kill-connection: Internal generic functions

L
log-access: Internal generic functions
log-access: Internal generic functions
logm: Exported generic functions
logm: Exported generic functions

M
make-real-resource-pathname: Internal functions
make-s-http-server: Exported functions
Method, (setf get-access-log-stream): Exported generic functions
Method, (setf get-boot-time): Exported generic functions
Method, (setf get-contexts): Exported generic functions
Method, (setf get-debug-mode): Exported generic functions
Method, (setf get-headers): Exported generic functions
Method, (setf get-http-connection): Exported generic functions
Method, (setf get-http-connections): Exported generic functions
Method, (setf get-http-server): Exported generic functions
Method, (setf get-http-version): Exported generic functions
Method, (setf get-id): Internal generic functions
Method, (setf get-keep-alive): Exported generic functions
Method, (setf get-last-periodic-check): Internal generic functions
Method, (setf get-line-buffer): Exported generic functions
Method, (setf get-log-lock): Internal generic functions
Method, (setf get-log-stream): Exported generic functions
Method, (setf get-method): Exported generic functions
Method, (setf get-name): Exported generic functions
Method, (setf get-port): Exported generic functions
Method, (setf get-process): Internal generic functions
Method, (setf get-request-count): Internal generic functions
Method, (setf get-server-process): Exported generic functions
Method, (setf get-state): Internal generic functions
Method, (setf get-stream): Internal generic functions
Method, (setf get-timestamp): Internal generic functions
Method, (setf get-uri): Exported generic functions
Method, (setf get-user): Exported generic functions
Method, cleanup-all-pooled-connections: Internal generic functions
Method, cleanup-connections: Internal generic functions
Method, cleanup-dead-connections: Internal generic functions
Method, cleanup-excess-alive-connections: Internal generic functions
Method, cleanup-excess-pooled-connections: Internal generic functions
Method, cleanup-old-connections: Internal generic functions
Method, cleanup-old-pooled-connections: Internal generic functions
Method, do-periodic-check: Internal generic functions
Method, find-handler: Exported generic functions
Method, flush-log-streams: Internal generic functions
Method, get-access-log-stream: Exported generic functions
Method, get-age: Internal generic functions
Method, get-boot-time: Exported generic functions
Method, get-byte-buffer: Exported generic functions
Method, get-contexts: Exported generic functions
Method, get-debug-mode: Exported generic functions
Method, get-full-path: Exported generic functions
Method, get-gzip-compressor: Exported generic functions
Method, get-headers: Exported generic functions
Method, get-http-connection: Exported generic functions
Method, get-http-connections: Exported generic functions
Method, get-http-server: Exported generic functions
Method, get-http-version: Exported generic functions
Method, get-id: Internal generic functions
Method, get-keep-alive: Exported generic functions
Method, get-last-periodic-check: Internal generic functions
Method, get-line-buffer: Exported generic functions
Method, get-log-lock: Internal generic functions
Method, get-log-stream: Exported generic functions
Method, get-method: Exported generic functions
Method, get-name: Exported generic functions
Method, get-path: Exported generic functions
Method, get-port: Exported generic functions
Method, get-process: Internal generic functions
Method, get-request-count: Internal generic functions
Method, get-server-process: Exported generic functions
Method, get-state: Internal generic functions
Method, get-stream: Internal generic functions
Method, get-timestamp: Internal generic functions
Method, get-uri: Exported generic functions
Method, get-user: Exported generic functions
Method, handle-http-server-connection: Exported generic functions
Method, handle-new-http-server-connection: Internal generic functions
Method, handle-one-http-request-response: Internal generic functions
Method, kill-connection: Internal generic functions
Method, log-access: Internal generic functions
Method, logm: Exported generic functions
Method, register-context-handler: Exported generic functions
Method, start-server: Exported generic functions
Method, stop-server: Exported generic functions
Method, unregister-context-handler: Exported generic functions
mime-type-for-pathname: Internal functions
mime-type-suffix-map: Internal functions

P
parse-http-date: Internal functions
parse-http-request: Internal functions
parse-http-request-headers: Internal functions
parse-http-request-line: Internal functions
ps: Exported functions
ps-handler: Internal functions

R
random-handler: Internal functions
read-crlf-line: Internal functions
redirect-handler: Exported functions
register-context-handler: Exported generic functions
register-context-handler: Exported generic functions
request-header-value: Exported functions
response-date: Internal functions

S
s-http-server-handler: Exported functions
standard-http-html-error-response: Exported functions
standard-http-html-message-response: Exported functions
standard-http-response-headers: Exported functions
start-server: Exported generic functions
start-server: Exported generic functions
static-resource-handler: Exported functions
stop-server: Exported generic functions
stop-server: Exported generic functions

T
toggle-connection-pooling: Exported functions

U
unregister-context-handler: Exported generic functions
unregister-context-handler: Exported generic functions

W
wrap-with-basic-authentication: Exported functions
write-http-response-headers: Exported functions
write-http-response-line: Exported functions
write-http-response-status-line: Exported functions

Jump to:   (  
A   B   C   D   E   F   G   H   K   L   M   P   R   S   T   U   W  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *   +  
A   B   C   D   G   H   I   K   L   M   N   P   R   S   T   U  
Index Entry  Section

*
*doctype-html-401-strict*: Internal special variables
*doctype-html-401-transitional*: Internal special variables
*favicon*: Exported special variables
*http-server-identification*: Exported special variables
*http-server-port*: Exported special variables
*last-http-request*: Exported special variables
*mime-type-suffix-map*: Internal special variables

+
+access-log-format+: Internal special variables
+allowed-connection-keepalive-age+: Internal special variables
+allowed-connection-pooled-age+: Internal special variables
+allowed-http-methods+: Internal special variables
+allowed-keepalive-connections+: Internal special variables
+allowed-pooled-connections+: Internal special variables
+basic-mime-type-suffix-map+: Internal special variables
+common-log-timestamp-format+: Internal special variables
+common-request-headers+: Internal special variables
+compressible-mime-types+: Internal special variables
+enable-gzip-compression+: Exported special variables
+known-mime.type-locations+: Internal special variables
+period-check-interval+: Internal special variables
+pool-connections+: Internal special variables

A
access-log-stream: Exported classes

B
boot-time: Exported classes
byte-buffer: Internal classes

C
contexts: Exported classes

D
debug-mode: Exported classes

G
gzip-compressor: Internal classes

H
headers: Exported classes
http-connection: Exported classes
http-connections: Exported classes
http-server: Internal classes
http-version: Exported classes

I
id: Internal classes

K
keep-alive: Exported classes

L
last-periodic-check: Exported classes
line-buffer: Internal classes
log-lock: Exported classes
log-stream: Exported classes

M
method: Exported classes

N
name: Exported classes

P
port: Exported classes
process: Internal classes

R
request-count: Internal classes

S
server-process: Exported classes
Slot, access-log-stream: Exported classes
Slot, boot-time: Exported classes
Slot, byte-buffer: Internal classes
Slot, contexts: Exported classes
Slot, debug-mode: Exported classes
Slot, gzip-compressor: Internal classes
Slot, headers: Exported classes
Slot, http-connection: Exported classes
Slot, http-connections: Exported classes
Slot, http-server: Internal classes
Slot, http-version: Exported classes
Slot, id: Internal classes
Slot, keep-alive: Exported classes
Slot, last-periodic-check: Exported classes
Slot, line-buffer: Internal classes
Slot, log-lock: Exported classes
Slot, log-stream: Exported classes
Slot, method: Exported classes
Slot, name: Exported classes
Slot, port: Exported classes
Slot, process: Internal classes
Slot, request-count: Internal classes
Slot, server-process: Exported classes
Slot, state: Internal classes
Slot, stream: Internal classes
Slot, timestamp: Internal classes
Slot, uri: Exported classes
Slot, user: Exported classes
Special Variable, *doctype-html-401-strict*: Internal special variables
Special Variable, *doctype-html-401-transitional*: Internal special variables
Special Variable, *favicon*: Exported special variables
Special Variable, *http-server-identification*: Exported special variables
Special Variable, *http-server-port*: Exported special variables
Special Variable, *last-http-request*: Exported special variables
Special Variable, *mime-type-suffix-map*: Internal special variables
Special Variable, +access-log-format+: Internal special variables
Special Variable, +allowed-connection-keepalive-age+: Internal special variables
Special Variable, +allowed-connection-pooled-age+: Internal special variables
Special Variable, +allowed-http-methods+: Internal special variables
Special Variable, +allowed-keepalive-connections+: Internal special variables
Special Variable, +allowed-pooled-connections+: Internal special variables
Special Variable, +basic-mime-type-suffix-map+: Internal special variables
Special Variable, +common-log-timestamp-format+: Internal special variables
Special Variable, +common-request-headers+: Internal special variables
Special Variable, +compressible-mime-types+: Internal special variables
Special Variable, +enable-gzip-compression+: Exported special variables
Special Variable, +known-mime.type-locations+: Internal special variables
Special Variable, +period-check-interval+: Internal special variables
Special Variable, +pool-connections+: Internal special variables
state: Internal classes
stream: Internal classes

T
timestamp: Internal classes

U
uri: Exported classes
user: Exported classes

Jump to:   *   +  
A   B   C   D   G   H   I   K   L   M   N   P   R   S   T   U  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   B   C   H   M   P   S  
Index Entry  Section

B
bogus-http-request-method: Internal conditions
bogus-http-request-uri: Internal conditions

C
Class, http-connection: Internal classes
Class, http-request: Exported classes
Class, s-http-server: Exported classes
Condition, bogus-http-request-method: Internal conditions
Condition, bogus-http-request-uri: Internal conditions
Condition, http-request-error: Internal conditions
Condition, missing-http-request-line: Internal conditions

H
http-connection: Internal classes
http-request: Exported classes
http-request-error: Internal conditions

M
missing-http-request-line: Internal conditions

P
Package, s-http-server: The s-http-server package

S
s-http-server: The s-http-server system
s-http-server: The s-http-server package
s-http-server: Exported classes
System, s-http-server: The s-http-server system

Jump to:   B   C   H   M   P   S