diff options
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 | } | ||
