Comparison

util/httpstream.lua @ 3921:70dd7f6026bd

util.httpstream: For HTTP client responses, changing properties responseversion and responseheaders to httpversion and httpheaders, to match HTTP server requests.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 19 Dec 2010 20:28:58 +0500
parent 3920:215c0ec63816
child 4772:fc16f39e0c79
comparison
equal deleted inserted replaced
3920:215c0ec63816 3921:70dd7f6026bd
102 end 102 end
103 end 103 end
104 104
105 success_cb({ 105 success_cb({
106 code = status_code; 106 code = status_code;
107 httpversion = httpversion;
108 headers = headers;
109 body = body;
110 -- COMPAT the properties below are deprecated
107 responseversion = httpversion; 111 responseversion = httpversion;
108 responseheaders = headers; 112 responseheaders = headers;
109 body = body;
110 }); 113 });
111 end 114 end
112 else coroutine.yield("unknown-parser-type"); end 115 else coroutine.yield("unknown-parser-type"); end
113 end 116 end
114 117