# HG changeset patch # User jbe # Date 1422546881 -3600 # Node ID 72e3a705ea672457d044df6a59e0949b6faad749 # Parent 96b6c31d72e3f0825dcf83bbb6b304e1dc3b3c77 Alphabetical order in reference.txt diff -r 96b6c31d72e3 -r 72e3a705ea67 reference.txt --- a/reference.txt Thu Jan 29 16:53:02 2015 +0100 +++ b/reference.txt Thu Jan 29 16:54:41 2015 +0100 @@ -361,6 +361,16 @@ sent. +### request:send_text_status_response(status_string, text) + +Sends a HTTP status plus a response body of content-type "text/plain" and +finishes the request using request:finish(). The status_string has to be +provided in the same format as expected by request:send_status(...) and will +be included in the response body as plain text. The additional second "text" +argument will be appended to the reponse body (separated by an empty line) if +given. + + ### request.socket The underlaying socket. Can be used to force a TCP RST, etc. @@ -404,13 +414,3 @@ the callback without arguments). -### request:send_text_status_response(status_string, text) - -Sends a HTTP status plus a response body of content-type "text/plain" and -finishes the request using request:finish(). The status_string has to be -provided in the same format as expected by request:send_status(...) and will -be included in the response body as plain text. The additional second "text" -argument will be appended to the reponse body (separated by an empty line) if -given. - -