webmcp

view framework/env/request/get_absolute_baseurl.lua @ 110:0c4841af07a5

String truncating by counting Unicode codepoints in format.string(...)
(grapheme cluster boundary detection not implemented)
author jbe
date Sun Jan 12 03:57:47 2014 +0100 (2014-01-12)
parents 944642a3e488
children 2169a62e12f5
line source
1 --[[--
2 baseurl =
3 request.get_absolute_baseurl()
5 This function returns the absolute base URL of the application, as set by request.set_absolute_baseurl(...).
7 --]]--
9 function request.get_absolute_baseurl()
10 if request._absolute_baseurl then
11 return request._absolute_baseurl
12 else
13 error("Absolute base URL is unknown. It should be set in the configuration by calling request.set_absolute_baseurl(...).")
14 end
15 end

Impressum / About Us