pub const HTTP_SERVER_STATIC: &str = "\"base.spl\" import\n\"../stream.spl\" import\n\n\"_static_ext_server\" net:http:server:register\n\"_static_ext_Request\" net:http:server:register\n\"bufsize\" net:http:server:register\n\"client-cache\" net:http:server:register\n1024 net:http:server:=bufsize\n\nconstruct net:http:server:_static_ext_server {\n\tbufsize\n\tclient-cache\n\tcached-files\n\t;\n\tget-cached-files { cached-files | with this ;\n\t\tthis:cached-files dup not if { pop MicroMap:new dup this:=cached-files }\n\t}\n}\n\nconstruct net:http:server:_static_ext_Request {\n\tbufsize\n\tclient-cache\n\t;\n\tget-bufsize { bufsize | with this ;\n\t\tthis:bufsize net:http:server:bufsize or\n\t}\n\tget-client-cache { client-cache | with this ;\n\t\tthis:client-cache net:http:server:client-cache or\n\t}\n\tserve-file { this | with filepath path type this ;\n\t\tthis:path path eq if {\n\t\t\tfilepath StreamTypes:file:create<0>:read-to-end<this:get-bufsize> this:write-ok:write-content-type<type>:write-body:finish;\n\t\t}\n\t\tthis\n\t}\n\tserve-file-cached { this | with filepath path type this ;\n\t\tthis:path path eq if {\n\t\t\tfilepath this:server:get-cached-files:get dup not if {\n\t\t\t\tpop filepath StreamTypes:file:create<0>:read-to-end<this:get-bufsize> dup this:server:cached-files:set;<filepath>\n\t\t\t}\n\t\t\tdef cache this:get-client-cache =cache\n\t\t\tthis:write-ok cache if { :write-header<\"Cache-Control\" \"public, max-age=\" cache _str concat> } :write-content-type<type>:write-body:finish;\n\t\t}\n\t\tthis\n\t}\n\tserve-string { this | with string path type this ;\n\t\tthis:path path eq if {\n\t\t\tstring this:write-ok:write-content-type<type>:write-str-body:finish;\n\t\t}\n\t\tthis\n\t}\n\tserve-html { this | with this ; \"text/html\" this:serve-file }\n\tserve-html-cached { this | with this ; \"text/html\" this:serve-file-cached }\n\tserve-html-string { this | with this ; \"text/html\" this:serve-string }\n}\n\ninclude net:http:server:_static_ext_server in net:http:Server\ninclude net:http:server:_static_ext_Request in net:http:server:Request\n";