Commit graph

16 commits

Author SHA1 Message Date
Simon Cruanes
bbe8d1c504 refactor(echo): simplify code, use gzip aggressively 2020-05-27 21:40:20 -04:00
Simon Cruanes
b640c0da30 feat: add Route.t construct, deprecate scanf, add more structured path
- Request now contains a path split into components
- Request now contains the query part already transformed into an assoc list
- Route.t uses a simple GADT for mapping `/`-split paths into routes,
  passing some components of type string or int to the handler
- deprecate scanf-based routing, as being too error prone
2020-05-27 19:56:23 -04:00
Simon Cruanes
64df8616f9 style: fix example 2020-03-25 23:23:06 -04:00
Simon Cruanes
65f8f957bd example: update echo so it can use camlzip, and serves files 2020-03-25 23:23:06 -04:00
Simon Cruanes
a238a2100b rename into tiny_httpd_camlzip 2020-03-25 23:23:06 -04:00
Simon Cruanes
59829264a5 wip: zlib bridge library 2020-03-25 23:23:06 -04:00
Simon Cruanes
130608d924 feat: easy accessor to the query parameters in path 2019-12-09 14:28:57 -06:00
Simon Cruanes
aa35e324e6 refactor 2019-12-03 17:38:56 -06:00
Simon Cruanes
1fc544aa16 refactor: improve the echo server 2019-12-03 16:20:05 -06:00
Simon Cruanes
3ac031b367 feat: add semaphore to limit number of simultaneous connections 2019-11-18 22:44:08 -06:00
Simon Cruanes
939b183a50 wip: new IO API with streams 2019-11-17 19:10:49 -06:00
Simon Cruanes
193a9d9d31 change API with accept pre-filter, use these before 100-continue 2019-11-17 16:52:39 -06:00
Simon Cruanes
3c5189a663 rename to tiny_httpd 2019-11-17 12:18:15 -06:00
Simon Cruanes
6b4deb55f9 refactor: modify API 2019-11-17 11:37:42 -06:00
Simon Cruanes
f6efa9b703 feat: debug, and chunked encoding handled properly
(tested with local server, upload, and curl)

close #1
2019-11-16 18:40:37 -06:00
Simon Cruanes
3703436d18 initial commit 2019-11-13 23:38:38 -06:00