Done the basics of http server

Added mime type detection
Lots still todo, directory index files auto indexing(?)
This commit is contained in:
2014-07-29 21:00:19 +01:00
parent 17693097a5
commit 31e1ff4f97
15 changed files with 391 additions and 14 deletions

View File

@@ -11,6 +11,7 @@
<itemPath>lib/http_parser.h</itemPath>
<itemPath>lib/ini.h</itemPath>
<itemPath>src/main.h</itemPath>
<itemPath>src/mime.h</itemPath>
<itemPath>src/socket.h</itemPath>
</logicalFolder>
<logicalFolder name="ResourceFiles"
@@ -27,6 +28,7 @@
<itemPath>lib/http_parser.c</itemPath>
<itemPath>lib/ini.c</itemPath>
<itemPath>src/main.c</itemPath>
<itemPath>src/mime.c</itemPath>
<itemPath>src/socket.c</itemPath>
</logicalFolder>
<logicalFolder name="TestFiles"
@@ -67,6 +69,11 @@
</preprocessorList>
<warningLevel>3</warningLevel>
</cTool>
<linkerTool>
<linkerLibItems>
<linkerLibLibItem>magic</linkerLibLibItem>
</linkerLibItems>
</linkerTool>
</compileType>
<item path="content/error.html" ex="false" tool="3" flavor2="0">
</item>
@@ -104,6 +111,10 @@
</item>
<item path="src/main.h" ex="false" tool="3" flavor2="0">
</item>
<item path="src/mime.c" ex="false" tool="0" flavor2="0">
</item>
<item path="src/mime.h" ex="false" tool="3" flavor2="0">
</item>
<item path="src/socket.c" ex="false" tool="0" flavor2="0">
</item>
<item path="src/socket.h" ex="false" tool="3" flavor2="0">
@@ -165,6 +176,10 @@
</item>
<item path="src/main.h" ex="false" tool="3" flavor2="0">
</item>
<item path="src/mime.c" ex="false" tool="0" flavor2="0">
</item>
<item path="src/mime.h" ex="false" tool="3" flavor2="0">
</item>
<item path="src/socket.c" ex="false" tool="0" flavor2="0">
</item>
<item path="src/socket.h" ex="false" tool="3" flavor2="0">