moonbridge

diff reference.txt @ 44:e835cda61478

Added io_error_handler; Code cleanup
author jbe
date Tue Mar 17 23:06:48 2015 +0100 (2015-03-17)
parents f2efab1ba3d0
children 0dd15d642124
line diff
     1.1 --- a/reference.txt	Mon Mar 09 16:42:55 2015 +0100
     1.2 +++ b/reference.txt	Tue Mar 17 23:06:48 2015 +0100
     1.3 @@ -163,6 +163,8 @@
     1.4    ignored when request:flush() is called)
     1.5  - static_headers: a set of headers to be included in every HTTP response
     1.6    (may be a string, a table or strings, or a table of key-value pairs)
     1.7 +- io_error_handler: a function to be called when an I/O operation with the
     1.8 +  client fails (must not return or an error will be raised automatically)
     1.9  
    1.10  The callback function receives a single request object as argument, which is
    1.11  described below.
    1.12 @@ -420,4 +422,10 @@
    1.13  indicated through return of request:stream_request_body(...) (not by calling
    1.14  the callback without arguments).
    1.15  
    1.16 +The function may be called with nil instead of a callback function. In this
    1.17 +case, the request body is read and discarded. Only if nil is passed instead of
    1.18 +a callback, then the function may also be invoked when the request body has
    1.19 +already been read and/or processed. In the latter case, the function performs
    1.20 +no operation.
    1.21  
    1.22 +

Impressum / About Us