comparison src/luan/modules/http/Server.luan @ 1414:4abf88ec66de

add Http.is_serving
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 08 Oct 2019 12:17:31 -0600
parents 27efb1fcbcb5
children 9ab267b9427c
comparison
equal deleted inserted replaced
1413:514b7a62fe27 1414:4abf88ec66de
34 if not matches(dir,":") then 34 if not matches(dir,":") then
35 dir = "file:"..dir 35 dir = "file:"..dir
36 end 36 end
37 dir = gsub(dir,"/$","") -- remove trailing '/' if any 37 dir = gsub(dir,"/$","") -- remove trailing '/' if any
38 Http.dir = dir 38 Http.dir = dir
39 Http.is_serving = true
39 function Io.schemes.site(path) 40 function Io.schemes.site(path)
40 return uri( dir..path ) 41 return uri( dir..path )
41 end 42 end
42 end 43 end
43 44