Mercurial Hosting > luan
diff src/luan/modules/http/Http_test.luan @ 1160:4beabb087be6
add http/impl
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 05 Feb 2018 22:33:59 -0700 |
parents | 1f4da56abd4f |
children | f8dd726bd4f5 |
line wrap: on
line diff
--- a/src/luan/modules/http/Http_test.luan Mon Feb 05 12:37:59 2018 -0700 +++ b/src/luan/modules/http/Http_test.luan Mon Feb 05 22:33:59 2018 -0700 @@ -40,13 +40,16 @@ end function Http_test.init() - Http.request = Http.new_request{} + Http.request = Http.new_request() Http.request.cookies = Http_test.cookies - Http.response = Http.new_response{ + Http.response = { + + headers = {} + + status = Http.STATUS.OK text_writer = function() - Http.sent_headers(Http.response.headers) Http_test.result = Io.uri "string:" Http_test.text_writer = Http_test.result.text_writer() return Http_test.text_writer