content-type support
[lnanohttp.git] / README
blobb52076f3f1851347ba914ad426768d2c5284d7cd
1 This is another _really_ minimal ISO C90-ish http server for linux:
2  - single-threaded (1 connection = 1 request)
3  - source configured (look for the configuration section in the code)
4  - epoll-ed
5  - signalfd-ed (i.e. synchronous)
6  - direct syscalls (no libc)
8 Only HEAD and GET methods.
10 To map a content-type to a file "A", add a file "A.mime" containing the
11 content-type.  You don't need to add a charset to utf-8 xml target since the
12 http default iso8859-1 allows the browser to parse the xml first element were
13 utf-8 encoding will be defined.
15 Will chroot in the configured path once started.
17 Don't forget you need to give root priviledges to the server in order to listen
18 on port 80.
20 Look in ulinux/patterns/network_server if you want to ramp up this server with
21 cloning, etc.
23 --------
25 I want a generic ELF data table builder.
26 I'm stuck with the ISO C99 data table builder.