diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2012-04-11 13:21:25 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:25:11 -0700 |
commit | 2778766d678b147fc079d67dee036346381b4764 (patch) | |
tree | da44507f62fb9c8cd078cf25f6dc24107e56af34 /src/headers.lua | |
parent | 3a8ba90dfb0c2eb224f317dd692ede426691e72a (diff) | |
download | luasocket-2778766d678b147fc079d67dee036346381b4764.tar.gz luasocket-2778766d678b147fc079d67dee036346381b4764.tar.bz2 luasocket-2778766d678b147fc079d67dee036346381b4764.zip |
Preliminary IPv6 support for v2.1
Diffstat (limited to 'src/headers.lua')
-rw-r--r-- | src/headers.lua | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/src/headers.lua b/src/headers.lua new file mode 100644 index 0000000..f92ee7a --- /dev/null +++ b/src/headers.lua | |||
@@ -0,0 +1,100 @@ | |||
1 | ----------------------------------------------------------------------------- | ||
2 | -- Canonic header field capitalization | ||
3 | -- LuaSocket toolkit. | ||
4 | -- Author: Diego Nehab | ||
5 | -- RCS ID: $Id$ | ||
6 | ----------------------------------------------------------------------------- | ||
7 | module("socket.headers") | ||
8 | |||
9 | canonic = { | ||
10 | ["accept"] = "Accept", | ||
11 | ["accept-charset"] = "Accept-Charset", | ||
12 | ["accept-encoding"] = "Accept-Encoding", | ||
13 | ["accept-language"] = "Accept-Language", | ||
14 | ["accept-ranges"] = "Accept-Ranges", | ||
15 | ["action"] = "Action", | ||
16 | ["alternate-recipient"] = "Alternate-Recipient", | ||
17 | ["age"] = "Age", | ||
18 | ["allow"] = "Allow", | ||
19 | ["arrival-date"] = "Arrival-Date", | ||
20 | ["authorization"] = "Authorization", | ||
21 | ["bcc"] = "Bcc", | ||
22 | ["cache-control"] = "Cache-Control", | ||
23 | ["cc"] = "Cc", | ||
24 | ["comments"] = "Comments", | ||
25 | ["connection"] = "Connection", | ||
26 | ["content-description"] = "Content-Description", | ||
27 | ["content-disposition"] = "Content-Disposition", | ||
28 | ["content-encoding"] = "Content-Encoding", | ||
29 | ["content-id"] = "Content-ID", | ||
30 | ["content-language"] = "Content-Language", | ||
31 | ["content-length"] = "Content-Length", | ||
32 | ["content-location"] = "Content-Location", | ||
33 | ["content-md5"] = "Content-MD5", | ||
34 | ["content-range"] = "Content-Range", | ||
35 | ["content-transfer-encoding"] = "Content-Transfer-Encoding", | ||
36 | ["content-type"] = "Content-Type", | ||
37 | ["date"] = "Date", | ||
38 | ["diagnostic-code"] = "Diagnostic-Code", | ||
39 | ["dsn-gateway"] = "DSN-Gateway", | ||
40 | ["etag"] = "ETag", | ||
41 | ["expect"] = "Expect", | ||
42 | ["expires"] = "Expires", | ||
43 | ["final-log-id"] = "Final-Log-ID", | ||
44 | ["final-recipient"] = "Final-Recipient", | ||
45 | ["from"] = "From", | ||
46 | ["host"] = "Host", | ||
47 | ["if-match"] = "If-Match", | ||
48 | ["if-modified-since"] = "If-Modified-Since", | ||
49 | ["if-none-match"] = "If-None-Match", | ||
50 | ["if-range"] = "If-Range", | ||
51 | ["if-unmodified-since"] = "If-Unmodified-Since", | ||
52 | ["in-reply-to"] = "In-Reply-To", | ||
53 | ["keywords"] = "Keywords", | ||
54 | ["last-attempt-date"] = "Last-Attempt-Date", | ||
55 | ["last-modified"] = "Last-Modified", | ||
56 | ["location"] = "Location", | ||
57 | ["max-forwards"] = "Max-Forwards", | ||
58 | ["message-id"] = "Message-ID", | ||
59 | ["mime-version"] = "MIME-Version", | ||
60 | ["original-envelope-id"] = "Original-Envelope-ID", | ||
61 | ["original-recipient"] = "Original-Recipient", | ||
62 | ["pragma"] = "Pragma", | ||
63 | ["proxy-authenticate"] = "Proxy-Authenticate", | ||
64 | ["proxy-authorization"] = "Proxy-Authorization", | ||
65 | ["range"] = "Range", | ||
66 | ["received"] = "Received", | ||
67 | ["received-from-mta"] = "Received-From-MTA", | ||
68 | ["references"] = "References", | ||
69 | ["referer"] = "Referer", | ||
70 | ["remote-mta"] = "Remote-MTA", | ||
71 | ["reply-to"] = "Reply-To", | ||
72 | ["reporting-mta"] = "Reporting-MTA", | ||
73 | ["resent-bcc"] = "Resent-Bcc", | ||
74 | ["resent-cc"] = "Resent-Cc", | ||
75 | ["resent-date"] = "Resent-Date", | ||
76 | ["resent-from"] = "Resent-From", | ||
77 | ["resent-message-id"] = "Resent-Message-ID", | ||
78 | ["resent-reply-to"] = "Resent-Reply-To", | ||
79 | ["resent-sender"] = "Resent-Sender", | ||
80 | ["resent-to"] = "Resent-To", | ||
81 | ["retry-after"] = "Retry-After", | ||
82 | ["return-path"] = "Return-Path", | ||
83 | ["sender"] = "Sender", | ||
84 | ["server"] = "Server", | ||
85 | ["smtp-remote-recipient"] = "SMTP-Remote-Recipient", | ||
86 | ["status"] = "Status", | ||
87 | ["subject"] = "Subject", | ||
88 | ["te"] = "TE", | ||
89 | ["to"] = "To", | ||
90 | ["trailer"] = "Trailer", | ||
91 | ["transfer-encoding"] = "Transfer-Encoding", | ||
92 | ["upgrade"] = "Upgrade", | ||
93 | ["user-agent"] = "User-Agent", | ||
94 | ["vary"] = "Vary", | ||
95 | ["via"] = "Via", | ||
96 | ["warning"] = "Warning", | ||
97 | ["will-retry-until"] = "Will-Retry-Until", | ||
98 | ["www-authenticate"] = "WWW-Authenticate", | ||
99 | ["x-mailer"] = "X-Mailer", | ||
100 | } | ||