From f960b3872a668ed1b53bd50c5b6a708367332f3c Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Mon, 23 Apr 2012 00:18:45 +0800 Subject: 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 --- doc/http.html | 6 ++++-- doc/index.html | 5 +++-- doc/installation.html | 4 ++-- doc/reference.html | 1 + doc/smtp.html | 5 +++-- doc/socket.html | 23 +++++++++++++++++++++++ 6 files changed, 36 insertions(+), 8 deletions(-) (limited to 'doc') diff --git a/doc/http.html b/doc/http.html index 9f3f087..cd41c0d 100644 --- a/doc/http.html +++ b/doc/http.html @@ -95,8 +95,9 @@ headers = {

-Field names are case insensitive (as specified by the standard) and all -functions work with lowercase field names. +Field names are case insensitive (as specified by the standard) and all +functions work with lowercase field names (but see +socket.headers.canonic). Field values are left unmodified.

@@ -117,6 +118,7 @@ the HTTP module:
  • USERAGENT: default user agent reported to server. +

    diff --git a/doc/index.html b/doc/index.html index 9da0f3c..833c9a8 100644 --- a/doc/index.html +++ b/doc/index.html @@ -87,7 +87,7 @@ Author: Diego Nehab

    Download

    -LuaSocket version 2.1.1-rc1 is now available for download! +LuaSocket version 2.1-rc1 is now available for download! It is compatible with Lua 5.1 and 5.2, and has been tested on Windows XP, Linux, and Mac OS X. Chances are it works well on most UNIX distributions and Windows flavors. @@ -125,7 +125,7 @@ has helped bring this library back to life.

    What's New

    -Main changes for LuaSocket 2.1.1-rc1 are IPv6 support +Main changes for LuaSocket 2.1-rc1 are IPv6 support and Lua 5.2 compatibility.

    @@ -135,6 +135,7 @@ and Lua 5.2 compatibility. diff --git a/doc/installation.html b/doc/installation.html index 00b2db0..37c309b 100644 --- a/doc/installation.html +++ b/doc/installation.html @@ -39,7 +39,7 @@ Installation">

    Installation

    -

    LuaSocket 2.1.1-rc still uses Lua 5.1's package +

    LuaSocket 2.1-rc still uses Lua 5.1's package system. Users that have already made the switch to Lua 5.2 should leave the default LUA_COMPAT_MODULE defined when compiling their Lua @@ -95,7 +95,7 @@ it should be easy to use LuaSocket. Just fire the interpreter and use the Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > socket = require("socket") > print(socket._VERSION) ---> LuaSocket 2.1.1-rc1 +--> LuaSocket 2.1-rc1

    Each module loads their dependencies automatically, so you only need to diff --git a/doc/reference.html b/doc/reference.html index d1043d4..f069d47 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -148,6 +148,7 @@ Support, Manual"> _DEBUG, dns, gettime, +headers.canonic, newtry, protect, select, diff --git a/doc/smtp.html b/doc/smtp.html index 2ef673a..bbbff80 100644 --- a/doc/smtp.html +++ b/doc/smtp.html @@ -90,8 +90,9 @@ headers = {

    -Field names are case insensitive (as specified by the standard) and all -functions work with lowercase field names. +Field names are case insensitive (as specified by the standard) and all +functions work with lowercase field names (but see +socket.headers.canonic). Field values are left unmodified.

    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() print(socket.gettime() - t .. " seconds elapsed") + + +

    +socket.headers.canonic

    + +

    The socket.headers.canonic table +is used by the HTTP and SMTP modules to translate from +lowercase field names back into their canonic +capitalization. When a lowercase field name exists as a key +in this table, the associated value is substituted in +whenever the field name is sent out. +

    + +

    +You can obtain the headers namespace if case run-time +modifications are required by running: +

    + +
    +-- loads the headers module 
    +local headers = require("headers")
    +
    +

    -- cgit v1.2.3-55-g6feb