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