Merge pull request #43 from fare/master
[hunchentoot.git] / packages.lisp
blob1c8a541a818e598bf6428e5dee5cf9464acd4809
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)
34 (:shadow #:defconstant
35 #:url-encode)
36 ;; see asdf system definition
37 (:import-from :hunchentoot-asd :*hunchentoot-version*)
38 #+:lispworks
39 (:import-from :lw #:with-unique-names #:when-let)
40 (:export #:*acceptor*
41 #:*catch-errors-p*
42 #+:lispworks
43 #:*cleanup-function*
44 #+:lispworks
45 #:*cleanup-interval*
46 #:*content-types-for-url-rewrite*
47 #:*default-connection-timeout*
48 #:*default-content-type*
49 #:*dispatch-table*
50 #:*file-upload-hook*
51 #:*handle-http-errors-p*
52 #:*header-stream*
53 #:*http-error-handler*
54 #:*hunchentoot-default-external-format*
55 #:*lisp-errors-log-level*
56 #:*lisp-warnings-log-level*
57 #:*log-lisp-backtraces-p*
58 #:*log-lisp-errors-p*
59 #:*log-lisp-warnings-p*
60 #:*methods-for-post-parameters*
61 #:*reply*
62 #:*request*
63 #:*rewrite-for-session-urls*
64 #:*session*
65 #:*session-gc-frequency*
66 #:*session-max-time*
67 #:*session-secret*
68 #:*show-lisp-backtraces-p*
69 #:*show-lisp-errors-p*
70 #:*tmp-directory*
71 #:*use-remote-addr-for-sessions*
72 #:*use-user-agent-for-sessions*
73 #:+http-accepted+
74 #:+http-authorization-required+
75 #:+http-bad-gateway+
76 #:+http-bad-request+
77 #:+http-conflict+
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-internal-server-error+
86 #:+http-length-required+
87 #:+http-method-not-allowed+
88 #:+http-moved-permanently+
89 #:+http-moved-temporarily+
90 #:+http-multi-status+
91 #:+http-multiple-choices+
92 #:+http-no-content+
93 #:+http-non-authoritative-information+
94 #:+http-not-acceptable+
95 #:+http-not-found+
96 #:+http-not-implemented+
97 #:+http-not-modified+
98 #:+http-ok+
99 #:+http-partial-content+
100 #:+http-payment-required+
101 #:+http-precondition-failed+
102 #:+http-proxy-authentication-required+
103 #:+http-request-entity-too-large+
104 #:+http-request-time-out+
105 #:+http-request-uri-too-large+
106 #:+http-requested-range-not-satisfiable+
107 #:+http-reset-content+
108 #:+http-see-other+
109 #:+http-service-unavailable+
110 #:+http-switching-protocols+
111 #:+http-temporary-redirect+
112 #:+http-unsupported-media-type+
113 #:+http-use-proxy+
114 #:+http-version-not-supported+
115 #:abort-request-handler
116 #:accept-connections
117 #:acceptor
118 #:acceptor-access-log-destination
119 #:acceptor-address
120 #:acceptor-dispatch-request
121 #:acceptor-error-template-directory
122 #:acceptor-input-chunking-p
123 #:acceptor-log-access
124 #:acceptor-log-message
125 #:acceptor-message-log-destination
126 #:acceptor-name
127 #:acceptor-output-chunking-p
128 #:acceptor-persistent-connections-p
129 #:acceptor-port
130 #:acceptor-read-timeout
131 #:acceptor-remove-session
132 #:acceptor-reply-class
133 #:acceptor-request-class
134 #:acceptor-ssl-p
135 #-:hunchentoot-no-ssl #:acceptor-ssl-certificate-file
136 #-:hunchentoot-no-ssl #:acceptor-ssl-privatekey-file
137 #-:hunchentoot-no-ssl #:acceptor-ssl-privatekey-password
138 #:acceptor-status-message
139 #:acceptor-write-timeout
140 #:acceptor-document-root
141 #:acceptor-error-template-directory
142 #:authorization
143 #:aux-request-value
144 #:client-as-string
145 #:content-length
146 #:content-length*
147 #:content-type
148 #:content-type*
149 #:cookie-domain
150 #:cookie-expires
151 #:cookie-http-only
152 #:cookie-in
153 #:cookie-name
154 #:cookie-out
155 #:cookie-path
156 #:cookie-secure
157 #:cookie-value
158 #:cookies-in
159 #:cookies-in*
160 #:cookies-out
161 #:cookies-out*
162 #:create-folder-dispatcher-and-handler
163 #:create-prefix-dispatcher
164 #:create-regex-dispatcher
165 #:create-request-handler-thread
166 #:create-static-file-dispatcher-and-handler
167 #:decrement-taskmaster-thread-count
168 #:default-document-directory
169 #:define-easy-handler
170 #:delete-aux-request-value
171 #:delete-session-value
172 #:dispatch-easy-handlers
173 #:easy-acceptor
174 #-:hunchentoot-no-ssl #:easy-ssl-acceptor
175 #:escape-for-html
176 #:execute-acceptor
177 #:get-parameter
178 #:get-parameters
179 #:get-parameters*
180 #:handle-incoming-connection
181 #:handle-if-modified-since
182 #:handle-request
183 #:handle-static-file
184 #:header-in
185 #:header-in*
186 #:header-out
187 #:headers-in
188 #:headers-in*
189 #:headers-out
190 #:headers-out*
191 #:host
192 #:http-token-p
193 #:hunchentoot-condition
194 #:hunchentoot-error
195 #:hunchentoot-warning
196 #:increment-taskmaster-thread-count
197 #:initialize-connection-stream
198 #:log-message*
199 #:maybe-invoke-debugger
200 #:mime-type
201 #:next-session-id
202 #:no-cache
203 #:one-thread-per-connection-taskmaster
204 #:parameter
205 #:parameter-error
206 #:post-parameter
207 #:post-parameters
208 #:post-parameters*
209 #:process-connection
210 #:process-request
211 #:query-string
212 #:query-string*
213 #:raw-post-data
214 #:real-remote-addr
215 #:reason-phrase
216 #:recompute-request-parameters
217 #:redirect
218 #:referer
219 #:remote-addr
220 #:remote-addr*
221 #:remote-port
222 #:remote-port*
223 #:remove-session
224 #:reply
225 #:reply-external-format
226 #:reply-external-format*
227 #:request
228 #:request-acceptor
229 #:request-method
230 #:request-method*
231 #:request-pathname
232 #:request-uri
233 #:request-uri*
234 #:require-authorization
235 #:reset-connection-stream
236 #:reset-sessions
237 #:reset-session-secret
238 #:return-code
239 #:return-code*
240 #:rfc-1123-date
241 #:script-name
242 #:script-name*
243 #:send-headers
244 #:server-protocol
245 #:server-protocol*
246 #:session
247 #:session-cookie-name
248 #:session-cookie-value
249 #:session-created
250 #:session-db
251 #:session-db-lock
252 #:session-gc
253 #:session-id
254 #:session-max-time
255 #:session-remote-addr
256 #:session-start
257 #:session-too-old-p
258 #:session-user-agent
259 #:session-value
260 #:session-verify
261 #:set-cookie
262 #:set-cookie*
263 #:shutdown
264 #:single-threaded-taskmaster
265 #-:hunchentoot-no-ssl #:ssl-acceptor
266 #:ssl-p
267 #:start
268 #:start-listening
269 #:start-session
270 #:stop
271 #:taskmaster
272 #:taskmaster-acceptor
273 #:taskmaster-max-accept-count
274 #:taskmaster-max-thread-count
275 #:taskmaster-thread-count
276 #:too-many-taskmaster-requests
277 #:url-decode
278 #:url-encode
279 #:user-agent
280 #:within-request-p))