webmcp

annotate framework/env/request/get_absolute_baseurl.lua @ 254:2169a62e12f5

Work on demo application (to fit modified WebMCP API); Bugfixes of WebMCP
author jbe
date Mon Mar 02 01:15:34 2015 +0100 (2015-03-02)
parents 944642a3e488
children 81711c529eb2
rev   line source
jbe/bsw@16 1 --[[--
jbe/bsw@16 2 baseurl =
jbe/bsw@16 3 request.get_absolute_baseurl()
jbe/bsw@16 4
jbe/bsw@16 5 This function returns the absolute base URL of the application, as set by request.set_absolute_baseurl(...).
jbe/bsw@16 6
jbe/bsw@16 7 --]]--
jbe/bsw@16 8
jbe/bsw@0 9 function request.get_absolute_baseurl()
jbe/bsw@0 10 if request._absolute_baseurl then
jbe/bsw@0 11 return request._absolute_baseurl
jbe/bsw@0 12 else
jbe@254 13 return request._relative_baseurl
jbe/bsw@0 14 end
jbe/bsw@0 15 end

Impressum / About Us