moonbridge
diff reference.txt @ 60:14ef90c46e16
New method request:close_after_finish()
author | jbe |
---|---|
date | Tue Mar 24 01:51:07 2015 +0100 (2015-03-24) |
parents | 042bb4854aa6 |
children | 3d1f23f1dbc6 |
line diff
1.1 --- a/reference.txt Tue Mar 24 00:51:13 2015 +0100 1.2 +++ b/reference.txt Tue Mar 24 01:51:07 2015 +0100 1.3 @@ -199,6 +199,18 @@ 1.4 invocation of request:stream_request_body(...) impossible. 1.5 1.6 1.7 +### request:close_after_finish() 1.8 + 1.9 +Closes the connection after answering the request. 1.10 + 1.11 +This method can only be called before the HTTP response header section has been 1.12 +finished (i.e. before request:finish_headers(), request:send_data(...), or 1.13 +request:finish() were called), but it may be called before a status code has 1.14 +been sent using request:send_status(...). 1.15 + 1.16 +A corresponding "Connection: close" header is automatically sent. 1.17 + 1.18 + 1.19 ### request.cookies 1.20 1.21 A table with all cookies sent by the client.