1.3.1
[hunchentoot.git] / packages.lisp
blobfbf11404726a828357b78333230b44c44182899c
1 ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*-
3 ;;; Copyright (c) 2004-2010, Dr. Edmund Weitz. All rights reserved.
5 ;;; Redistribution and use in source and binary forms, with or without
6 ;;; modification, are permitted provided that the following conditions
7 ;;; are met:
9 ;;; * Redistributions of source code must retain the above copyright
10 ;;; notice, this list of conditions and the following disclaimer.
12 ;;; * Redistributions in binary form must reproduce the above
13 ;;; copyright notice, this list of conditions and the following
14 ;;; disclaimer in the documentation and/or other materials
15 ;;; provided with the distribution.
17 ;;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED
18 ;;; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 ;;; ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
21 ;;; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 ;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23 ;;; GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 ;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 ;;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26 ;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 ;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 (in-package :cl-user)
31 (defpackage #:hunchentoot
32 (:nicknames #:tbnl)
33 (:use :cl :cl-ppcre :chunga :flexi-streams :url-rewrite :alexandria)
34 (:shadow #:defconstant
35 #:url-encode)
36 (:export #:*acceptor*
37 #:*catch-errors-p*
38 #+:lispworks
39 #:*cleanup-function*
40 #+:lispworks
41 #:*cleanup-interval*
42 #:*content-types-for-url-rewrite*
43 #:*default-connection-timeout*
44 #:*default-content-type*
45 #:*dispatch-table*
46 #:*file-upload-hook*
47 #:*handle-http-errors-p*
48 #:*header-stream*
49 #:*http-error-handler*
50 #:*hunchentoot-default-external-format*
51 #:*hunchentoot-version*
52 #:*lisp-errors-log-level*
53 #:*lisp-warnings-log-level*
54 #:*log-lisp-backtraces-p*
55 #:*log-lisp-errors-p*
56 #:*log-lisp-warnings-p*
57 #:*methods-for-post-parameters*
58 #:*reply*
59 #:*request*
60 #:*rewrite-for-session-urls*
61 #:*session*
62 #:*session-gc-frequency*
63 #:*session-max-time*
64 #:*session-secret*
65 #:*show-lisp-backtraces-p*
66 #:*show-lisp-errors-p*
67 #:*tmp-directory*
68 #:*use-remote-addr-for-sessions*
69 #:*use-user-agent-for-sessions*
70 #:+http-accepted+
71 #:+http-already-reported+
72 #:+http-authorization-required+
73 #:+http-bad-gateway+
74 #:+http-bad-request+
75 #:+http-client-closed-request+
76 #:+http-conflict+
77 #:+http-connection-closed-without-response+
78 #:+http-continue+
79 #:+http-created+
80 #:+http-expectation-failed+
81 #:+http-failed-dependency+
82 #:+http-forbidden+
83 #:+http-gateway-time-out+
84 #:+http-gone+
85 #:+http-im-a-teapot+
86 #:+http-im-used+
87 #:+http-insufficient-storage+
88 #:+http-internal-server-error+
89 #:+http-length-required+
90 #:+http-locked+
91 #:+http-loop-detected+
92 #:+http-method-not-allowed+
93 #:+http-misdirected-request+
94 #:+http-moved-permanently+
95 #:+http-moved-temporarily+
96 #:+http-multi-status+
97 #:+http-multiple-choices+
98 #:+http-network-authentication-required+
99 #:+http-network-connect-timeout-error+
100 #:+http-no-content+
101 #:+http-non-authoritative-information+
102 #:+http-not-acceptable+
103 #:+http-not-extended
104 #:+http-not-found+
105 #:+http-not-implemented+
106 #:+http-not-modified+
107 #:+http-ok+
108 #:+http-partial-content+
109 #:+http-payment-required+
110 #:+http-permanent-redirect+
111 #:+http-precondition-failed+
112 #:+http-precondition-required+
113 #:+http-processing+
114 #:+http-proxy-authentication-required+
115 #:+http-request-entity-too-large+
116 #:+http-request-header-fields-too-large+
117 #:+http-request-time-out+
118 #:+http-request-uri-too-large+
119 #:+http-requested-range-not-satisfiable+
120 #:+http-reset-content+
121 #:+http-see-other+
122 #:+http-service-unavailable+
123 #:+http-switching-protocols+
124 #:+http-temporary-redirect+
125 #:+http-too-many-requests+
126 #:+http-unavailable-for-legal-reasons+
127 #:+http-unprocessable-entity+
128 #:+http-unsupported-media-type+
129 #:+http-upgrade-required+
130 #:+http-use-proxy+
131 #:+http-variant-also-negotiates+
132 #:+http-version-not-supported+
133 #:abort-request-handler
134 #:accept-connections
135 #:acceptor
136 #:acceptor-access-log-destination
137 #:acceptor-address
138 #:acceptor-listen-backlog
139 #:acceptor-dispatch-request
140 #:acceptor-error-template-directory
141 #:acceptor-input-chunking-p
142 #:acceptor-log-access
143 #:acceptor-log-message
144 #:acceptor-message-log-destination
145 #:acceptor-name
146 #:acceptor-output-chunking-p
147 #:acceptor-persistent-connections-p
148 #:acceptor-port
149 #:acceptor-read-timeout
150 #:acceptor-remove-session
151 #:acceptor-reply-class
152 #:acceptor-request-class
153 #:acceptor-requests-in-progress
154 #:acceptor-ssl-p
155 #-:hunchentoot-no-ssl #:acceptor-ssl-certificate-file
156 #-:hunchentoot-no-ssl #:acceptor-ssl-privatekey-file
157 #-:hunchentoot-no-ssl #:acceptor-ssl-privatekey-password
158 #:acceptor-status-message
159 #:acceptor-write-timeout
160 #:acceptor-document-root
161 #:acceptor-error-template-directory
162 #:authorization
163 #:aux-request-value
164 #:client-as-string
165 #:content-length
166 #:content-length*
167 #:content-type
168 #:content-type*
169 #:cookie-domain
170 #:cookie-expires
171 #:cookie-http-only
172 #:cookie-in
173 #:cookie-max-age
174 #:cookie-name
175 #:cookie-out
176 #:cookie-path
177 #:cookie-secure
178 #:cookie-value
179 #:cookies-in
180 #:cookies-in*
181 #:cookies-out
182 #:cookies-out*
183 #:create-folder-dispatcher-and-handler
184 #:create-prefix-dispatcher
185 #:create-regex-dispatcher
186 #:create-request-handler-thread
187 #:create-static-file-dispatcher-and-handler
188 #:decrement-taskmaster-thread-count
189 #:default-document-directory
190 #:define-easy-handler
191 #:delete-aux-request-value
192 #:delete-session-value
193 #:dispatch-easy-handlers
194 #:easy-acceptor
195 #-:hunchentoot-no-ssl #:easy-ssl-acceptor
196 #:escape-for-html
197 #:execute-acceptor
198 #:get-parameter
199 #:get-parameters
200 #:get-parameters*
201 #:handle-incoming-connection
202 #:handle-if-modified-since
203 #:handle-request
204 #:handle-static-file
205 #:header-in
206 #:header-in*
207 #:header-out
208 #:headers-in
209 #:headers-in*
210 #:headers-out
211 #:headers-out*
212 #:host
213 #:http-token-p
214 #:hunchentoot-condition
215 #:hunchentoot-error
216 #:hunchentoot-warning
217 #:increment-taskmaster-thread-count
218 #:initialize-connection-stream
219 #:log-message*
220 #:maybe-invoke-debugger
221 #:mime-type
222 #:multi-threaded-taskmaster
223 #:next-session-id
224 #:no-cache
225 #:one-thread-per-connection-taskmaster
226 #:parameter
227 #:parameter-error
228 #:post-parameter
229 #:post-parameters
230 #:post-parameters*
231 #:process-connection
232 #:process-request
233 #:query-string
234 #:query-string*
235 #:raw-post-data
236 #:real-remote-addr
237 #:reason-phrase
238 #:recompute-request-parameters
239 #:redirect
240 #:referer
241 #:regenerate-session-cookie-value
242 #:remote-addr
243 #:remote-addr*
244 #:remote-port
245 #:remote-port*
246 #:local-addr
247 #:local-addr*
248 #:local-port
249 #:local-port*
250 #:remove-session
251 #:reply
252 #:reply-external-format
253 #:reply-external-format*
254 #:request
255 #:request-acceptor
256 #:request-method
257 #:request-method*
258 #:request-pathname
259 #:request-uri
260 #:request-uri*
261 #:require-authorization
262 #:reset-connection-stream
263 #:reset-sessions
264 #:reset-session-secret
265 #:return-code
266 #:return-code*
267 #:rfc-1123-date
268 #:script-name
269 #:script-name*
270 #:send-headers
271 #:server-protocol
272 #:server-protocol*
273 #:session
274 #:session-cookie-name
275 #:session-cookie-value
276 #:session-created
277 #:session-db
278 #:session-db-lock
279 #:session-gc
280 #:session-id
281 #:session-max-time
282 #:session-remote-addr
283 #:session-start
284 #:session-too-old-p
285 #:session-user-agent
286 #:session-value
287 #:session-verify
288 #:set-cookie
289 #:set-cookie*
290 #:shutdown
291 #:single-threaded-taskmaster
292 #-:hunchentoot-no-ssl #:ssl-acceptor
293 #:ssl-p
294 #:get-peer-ssl-certificate
295 #:start
296 #:start-listening
297 #:start-session
298 #:start-thread
299 #:started-p
300 #:stop
301 #:taskmaster
302 #:taskmaster-acceptor
303 #:taskmaster-max-accept-count
304 #:taskmaster-max-thread-count
305 #:taskmaster-thread-count
306 #:too-many-taskmaster-requests
307 #:url-decode
308 #:url-encode
309 #:user-agent
310 #:within-request-p
311 #:detach-socket
312 #:bad-request))