RejectedSoftware Forums

Sign up

Pages: 1 2

Re: How server static page?

I do not how it's work, but probably it can be used as temporal solution.

void root(HTTPServerRequest req, HTTPServerResponse res)
{
serveStaticFile("public/123.html")(req,res);
}

Re: How server static page?

On Sat, 13 Jun 2015 18:00:42 GMT, Suliman wrote:

I do not how it's work, but probably it can be used as temporal solution.

void root(HTTPServerRequest req, HTTPServerResponse res)
{
serveStaticFile("public/123.html")(req,res);
}

serveStaticFile (and serveStaticFiles) returns a delegate, so you're doing dual work here.

Pages: 1 2