► |  | Web Server: PLT HTTP Server

1 | Running the Web Server
2 | Writing Servlets
3 | Extending the Web Server
4 | Troubleshooting and Tips
5 | Acknowledgements
| Index

► | 3 | Extending the Web Server

3.1 | Configuration
3.2 | Setting Up Servlets
3.3 | Dispatchers
3.4 | Web Config Unit
3.5 | Web Server Unit
3.6 | Internal

▼ | 3.1 | Configuration

3.1.1 | Configuration Table Structure
3.1.2 | Configuration Table
3.1.3 | Servlet Namespaces
3.1.4 | Standard Responders

On this page:

configuration-table
host-table
host
responders
messages
timeouts
paths

Version: 4.1.4
top← prev up next →

##### 3.1.1`` Configuration Table Structure

(require web-server/configuration/configuration-table-structs)

"configuration/configuration-table-structs.ss" provides the following structures that represent a standard configuration (see Web Server Unit) of the Web Server . The contracts on this structure influence the valid types of values in the configuration table S-expression file format described in Configuration Table.

(struct |  | configuration-table | ( | port
|  |  |  | max-waiting
|  |  |  | initial-connection-timeout
|  |  |  | default-host
|  |  |  | virtual-hosts))

port : port-number?
max-waiting : natural-number/c
initial-connection-timeout : natural-number/c
default-host : host-table?
virtual-hosts : (listof (cons/c string? host-table?))

(struct host-table (indices log-format messages timeouts paths))
indices : (listof string?)
log-format : symbol?
messages : messages?
timeouts : timeouts?
paths : paths?

(struct |  | host | ( | indices
|  |  |  | log-format
|  |  |  | log-path
|  |  |  | passwords
|  |  |  | responders
|  |  |  | timeouts
|  |  |  | paths))

indices : (listof string?)
log-format : symbol?
log-path : (or/c false/c path-string?)
passwords : (or/c false/c path-string?)
responders : responders?
timeouts : timeouts?
paths : paths?

(struct |  | responders | ( | servlet
|  |  |  | servlet-loading
|  |  |  | authentication
|  |  |  | servlets-refreshed
|  |  |  | passwords-refreshed
|  |  |  | file-not-found
|  |  |  | protocol
|  |  |  | collect-garbage))

servlet : (url? any/c . -> . response?)
servlet-loading : (url? any/c . -> . response?)
authentication : (url? (cons/c symbol? string?) . -> . response?)
servlets-refreshed : (-> response?)
passwords-refreshed : (-> response?)
file-not-found : (request? . -> . response?)
protocol : (url? . -> . response?)
collect-garbage : (-> response?)

(struct |  | messages | ( | servlet
|  |  |  | authentication
|  |  |  | servlets-refreshed
|  |  |  | passwords-refreshed
|  |  |  | file-not-found
|  |  |  | protocol
|  |  |  | collect-garbage))

servlet : string?
authentication : string?
servlets-refreshed : string?
passwords-refreshed : string?
file-not-found : string?
protocol : string?
collect-garbage : string?

(struct |  | timeouts | ( | default-servlet
|  |  |  | password
|  |  |  | servlet-connection
|  |  |  | file-per-byte
|  |  |  | file-base))

default-servlet : number?
password : number?
servlet-connection : number?
file-per-byte : number?
file-base : number?

(struct |  | paths | ( | conf
|  |  |  | host-base
|  |  |  | log
|  |  |  | htdocs
|  |  |  | servlet
|  |  |  | mime-types
|  |  |  | passwords))

conf : (or/c false/c path-string?)
host-base : (or/c false/c path-string?)
log : (or/c false/c path-string?)
htdocs : (or/c false/c path-string?)
servlet : (or/c false/c path-string?)
mime-types : (or/c false/c path-string?)
passwords : (or/c false/c path-string?)

top← prev up next →