aboutsummaryrefslogtreecommitdiff
path: root/doc/socket.html
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2012-04-23 00:18:45 +0800
committerDiego Nehab <diego.nehab@gmail.com>2012-04-23 00:18:45 +0800
commitf960b3872a668ed1b53bd50c5b6a708367332f3c (patch)
treee82a1b113ed40d70afae36d230b6a6048e1d9fab /doc/socket.html
parentf37e0260261f7691246429d227cf7124c291e8b1 (diff)
downloadluasocket-f960b3872a668ed1b53bd50c5b6a708367332f3c.tar.gz
luasocket-f960b3872a668ed1b53bd50c5b6a708367332f3c.tar.bz2
luasocket-f960b3872a668ed1b53bd50c5b6a708367332f3c.zip
Making progress toward a release
Documented headers.lua Update copyright date everywhere Remove RCSID from files Move version back to 2.1 rather than 2.1.1 Fixed url package to support ipv6 hosts Changed "domain" to "family" in tcp and udp structures Implemented getfamily methods
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>