moonbridge

diff reference.txt @ 7:4d7551c962d5

New method request:send_text_status_response(...) that was previously only available internally as error_response(...) function
author jbe
date Thu Jan 29 01:33:00 2015 +0100 (2015-01-29)
parents f6d3b3f70dab
children 7e6faff049c3
line diff
     1.1 --- a/reference.txt	Wed Jan 14 12:32:11 2015 +0100
     1.2 +++ b/reference.txt	Thu Jan 29 01:33:00 2015 +0100
     1.3 @@ -393,6 +393,16 @@
     1.4  the callback without arguments).
     1.5  
     1.6  
     1.7 +### request:send_text_status_response(status_string, text)
     1.8 +
     1.9 +Sends a HTTP status plus a response body of content-type "text/plain" and
    1.10 +finishes the request using request:finish(). The status_string has to be
    1.11 +provided in the same format as expected by request:send_status(...) and will
    1.12 +be included in the response body as plain text. The additional second "text"
    1.13 +argument will be appended to the reponse body (separated by an empty line) if
    1.14 +given.
    1.15 +
    1.16 +
    1.17  ### request.url
    1.18  
    1.19  The requested URL. This value is automatically split up into request.path and

Impressum / About Us