roxen.lists.pike.general

Subject Author Date
Re: Suggestions for a small menu-driven system? Arne Goedeke <el[at]laramies[dot]com> 19-08-2009
I have a 80 lines simple http server which i used to test some stuff i
was doing with persistent tcp connections using js. There is some code
in there which is explicilty for that, but i used it also to serve some
static files. It should serve as a good example.

It even features some asynchronous handling of http requests. And beware
the Stdio.read_file() part as it would allow for reading arbitrary files
on your system (if readable), but as i said, i used this for testing.

best

arne

Stephen R. van den Berg wrote:
> Martin Nilsson (Opera Mini - AFK!) @ Pike (-) importm?te f?r mailinglistan
wrote:
>> And that that webserver is good enough to be used for several commercial
>> products at Opera.
> 
> Any snippets of sample code you (or anyone else) can share for a minimal
> server serving some (e.g. html and gifs) files from the filesystem?