-
Notifications
You must be signed in to change notification settings - Fork 2
/
snowy.scm
67 lines (59 loc) · 1002 Bytes
/
snowy.scm
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
(module snowy
;; exports:
(;; server
http-listen
max-connections
server-port
server-bind-address
;; response
make-response
response-port
response-code
response-code-set!
response-reason
response-reason-set!
response-headers
response-headers-set!
;response-headers-sent
response-headers-ref
response-body
response-body-set!
response-keep-alive
response-headers-merge
response-write-head
response-write-body
response-write
update-response
status-codes
merge-headers
;; request
make-request
request-method
request-url
request-headers
request-headers-complete
request-message-complete
request-keep-alive
request-port
)
(import chicken scheme foreign)
(use data-structures
extras
posix
tcp
ports
srfi-1
srfi-4
srfi-13
srfi-18
srfi-69
lolevel
miscmacros
foreigners
defstruct)
(include "http-parser.scm")
(include "request.scm")
(include "response.scm")
(include "server.scm")
(include "utils.scm")
)