Mercurial Hosting > luan
diff scripts/test.luan @ 1152:21d157b153fe
change http parameters interface
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 04 Feb 2018 19:25:12 -0700 |
parents | 86e477945676 |
children | 0f2890e2ba16 |
line wrap: on
line diff
--- a/scripts/test.luan Sun Feb 04 18:50:25 2018 -0700 +++ b/scripts/test.luan Sun Feb 04 19:25:12 2018 -0700 @@ -36,12 +36,12 @@ local page init() -Http.request.parameter.code = "require('luan:Io.luan').print 'hi'" +Http.request.parameters.code = "require('luan:Io.luan').print 'hi'" page = get_page "/run" trim(page) == "hi" or error "failed" init() -Http.request.parameter.cmd = "'ab'..'cd'" +Http.request.parameters.cmd = "'ab'..'cd'" page = get_page "/shell" find(page,"abcd") or error "failed" @@ -82,9 +82,9 @@ web_search() init() -Http.request.parameter.query = "" -Http.request.parameter.rows = "100" -Http.request.parameter.sort = "" +Http.request.parameters.query = "" +Http.request.parameters.rows = "100" +Http.request.parameters.sort = "" web_search() @@ -105,7 +105,7 @@ init(); get_page "/examples/shell" init() -Http.request.parameter.name = "bob" +Http.request.parameters.name = "bob" page = get_page "/examples/hi2" find(page,"bob") or error "failed"