view teal-src/util/http.d.tl @ 11486:78d843faaffc

util.promise: Switch order of parameters to join() This saves awkward fiddlery with varargs and also echoes the signature of pcall/xpcall.
author Matthew Wild <mwild1@gmail.com>
date Thu, 25 Mar 2021 15:08:22 +0000
parents 113f3912c7cb
children
line wrap: on
line source

local record lib
	urlencode : function (s : string) : string 
	urldecode : function (s : string) : string 
	formencode : function (f : { string : string }) : string 
	formdecode : function (s : string) : { string : string } 
	contains_token : function (field : string, token : string) : boolean 
	normalize_path : function (path : string) : string 
end
return lib