-
-
Notifications
You must be signed in to change notification settings - Fork 10
iis module
Tatsuro Shibamura edited this page Jun 27, 2015
·
6 revisions
iis module.
-- call Win32 API OutputDebugString
iis.debug("debug message")-- execute another page
if iis.req.get_url() == "/" then
iis.exec("/another_page")
end-- return 404 not found
iis.exit(404)-- flush buffering content
iis.flush()if iis.headers_sent()
iis.debug("already sent response headers")
end-- map to physical path
physicalPath = iis.map_path("/")
iis.debug(physicalPath)-- write to response body
iis.print("hello, world")-- redirect to url (default: 302)
iis.redirect("http://buchizo.wordpress.com/")
-- 301 redirect
iis.redirect("http://buchizo.wordpress.com/", 301)-- write with newline
iis.say("hello, world")
iis.say("newline")- Getting Start
- Reference