File

teal-src/util/http.d.tl @ 11527:eaff6e548f12

net.http.server: Split out method for sending only the header Makes it easier to reuse, e.g. for SSE or websockets or other custom responses.
author Kim Alvefur <zash@zash.se>
date Sat, 24 Apr 2021 10:50:24 +0200
parent 11432:113f3912c7cb
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