diff options
Diffstat (limited to 'doc/socket.html')
-rw-r--r-- | doc/socket.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/socket.html b/doc/socket.html index 2267b4a..dcf8b61 100644 --- a/doc/socket.html +++ b/doc/socket.html | |||
@@ -112,6 +112,29 @@ t = socket.gettime() | |||
112 | print(socket.gettime() - t .. " seconds elapsed") | 112 | print(socket.gettime() - t .. " seconds elapsed") |
113 | </pre> | 113 | </pre> |
114 | 114 | ||
115 | <!-- socket.headers ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | ||
116 | |||
117 | <p class=name id="headers.canonic"> | ||
118 | socket.headers.<b>canonic</b></p> | ||
119 | |||
120 | <p> The <tt>socket.headers.canonic</tt> table | ||
121 | is used by the HTTP and SMTP modules to translate from | ||
122 | lowercase field names back into their canonic | ||
123 | capitalization. When a lowercase field name exists as a key | ||
124 | in this table, the associated value is substituted in | ||
125 | whenever the field name is sent out. | ||
126 | </p> | ||
127 | |||
128 | <p> | ||
129 | You can obtain the <tt>headers</tt> namespace if case run-time | ||
130 | modifications are required by running: | ||
131 | </p> | ||
132 | |||
133 | <pre class=example> | ||
134 | -- loads the headers module | ||
135 | local headers = require("headers") | ||
136 | </pre> | ||
137 | |||
115 | <!-- newtry +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 138 | <!-- newtry +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
116 | 139 | ||
117 | <p class=name id=newtry> | 140 | <p class=name id=newtry> |