/
packages.cl
230 lines (213 loc) · 5.87 KB
/
packages.cl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
#+(version= 8 1)
(sys:defpatch "aserve" 2
"v1: version 1.2.56, large request body & multipart content type & more;
v2: version 1.2.58, fix problem introduced in 1.2.56 where the response date
is always the zero universal time & correctly send out the comment after
the result code."
:type :system
:post-loadable t)
#+(version= 8 0)
(sys:defpatch "aserve" 5
"v1: version 1.2.45;
v2: version 1.2.46;
v3: version 1.2.47;
v4: version 1.2.48, handle HTTP `204 No Content';
v5: version 1.2.50, Enhanced SSL client/server support."
:type :system
:post-loadable t)
#+(version= 7 0)
(sys:defpatch "aserve" 2
"v2: version 1.2.45."
:type :system
:post-loadable t)
;; -*- mode: common-lisp; package: net.aserve -*-
;;
;; packages.cl
;;
;; copyright (c) 1986-2005 Franz Inc, Berkeley, CA - All rights reserved.
;; copyright (c) 2002-2007 Franz Inc, Oakland, CA - All rights reserved.
;;
;; This code is free software; you can redistribute it and/or
;; modify it under the terms of the version 2.1 of
;; the GNU Lesser General Public License as published by
;; the Free Software Foundation, as clarified by the AllegroServe
;; prequel found in license-allegroserve.txt.
;;
;; This code is distributed in the hope that it will be useful,
;; but without any warranty; without even the implied warranty of
;; merchantability or fitness for a particular purpose. See the GNU
;; Lesser General Public License for more details.
;;
;; Version 2.1 of the GNU Lesser General Public License is in the file
;; license-lgpl.txt that was distributed with this file.
;; If it is not present, you can access it from
;; http://www.gnu.org/copyleft/lesser.txt (until superseded by a newer
;; version) or write to the Free Software Foundation, Inc., 59 Temple Place,
;; Suite 330, Boston, MA 02111-1307 USA
;;
;;
;; $Id: packages.cl,v 1.22 2009/02/24 19:04:17 layer Exp $
;; Description:
;; packages and exports for AllegroServe
;;
;;- This code in this file obeys the Lisp Coding Standard found in
;;- http://www.franz.com/~jkf/coding_standards.html
;;-
; note: net.html.generator is not defined here since that's a
; standalone package
;
(in-package :user)
(eval-when (compile load eval)
(require :uri)
#-(and allegro (version>= 6))
(require :streamc))
(defpackage :net.aserve
(:use :common-lisp :excl :net.html.generator :net.uri)
(:export
#:authorize
#:authorizer
#:base64-decode
#:base64-encode
#:compute-strategy
#:computed-entity
;; don't export, these should be private
; #:debug-off
; #:debug-on
#:denied-request
#:enable-proxy
#:ensure-stream-lock
#:entity-plist
#:failed-request
#:form-urlencoded-to-query
#:function-authorizer ; class
#:function-authorizer-function
#:get-basic-authorization
#:get-cookie-values
#:get-all-multipart-data
#:get-multipart-header
#:get-multipart-sequence
#:get-request-body
#:handle-request
#:handle-uri ; add-on component..
#:header-slot-value
#:http-request ; class
#:locator ; class
#:location-authorizer ; class
#:location-authorizer-patterns
#:map-entities
#:parse-multipart-header
#:password-authorizer ; class
#:process-entity
#:publish
#:publish-file
#:publish-directory
#:publish-multi
#:publish-prefix
#:query-to-form-urlencoded
#:reply-header-slot-value
#:run-cgi-program
#:set-basic-authorization
#:standard-locator
#:unpublish-locator
#:vhost
#:vhost-log-stream
#:vhost-error-stream
#:vhost-names
#:vhost-plist
#:request-method
#:request-protocol
#:request-protocol-string
#:request-query
#:request-query-value
#:request-raw-request
#:request-raw-uri
#:request-socket
#:request-uri
#:request-variable-value
#:request-wserver
#:request-reply-code
#:request-reply-date
#:request-reply-content-length
#:request-reply-content-type
#:request-reply-plist
#:request-reply-protocol-string
#:request-reply-strategy
#:request-reply-stream
#:set-cookie-header
#:shutdown
#:split-into-words
#:start
#:uridecode-string
#:uriencode-string
#:unpublish
#:url-argument
#:url-argument-alist
#:with-http-response
#:with-http-body
#:wserver
#:wserver-default-vhost
#:wserver-enable-chunking
#:wserver-enable-keep-alive
#:wserver-external-format
#:wserver-filters
#:wserver-locators
#:wserver-io-timeout
#:wserver-log-function
#:wserver-log-stream
#:wserver-response-timeout
#:wserver-socket
#:wserver-vhosts
#:*aserve-version*
#:*default-aserve-external-format*
#:*http-io-timeout*
#:*http-response-timeout*
#:*mime-types*
#:*response-accepted*
#:*response-no-content*
#:*response-bad-request*
#:*response-continue*
#:*response-created*
#:*response-found*
#:*response-internal-server-error*
#:*response-no-content*
#:*response-non-authoritative-information*
#:*response-not-found*
#:*response-not-modified*
#:*response-ok*
#:*response-moved-permanently*
#:*response-see-other*
#:*response-temporary-redirect*
#:*response-unauthorized*
#:*wserver*))
(defpackage :net.aserve.client
(:use :net.aserve :excl :common-lisp)
(:export
#:client-request ; class
#:client-request-close
#:client-request-cookies
#:client-request-headers
#:client-request-protocol
#:client-request-read-sequence
#:client-request-response-code
#:client-request-response-comment
#:client-request-socket
#:client-request-uri
#:client-response-header-value
#:read-response-body
#:compute-digest-authorization
#:cookie-item
#:cookie-item-expires
#:cookie-item-name
#:cookie-item-path
#:cookie-item-secure
#:cookie-item-value
#:cookie-jar ; class
#:digest-authorization
#:digest-password
#:digest-realm
#:digest-username
#:do-http-request
#:http-copy-file
#:make-http-client-request
#:read-client-response-headers
))