Commit graph

553 commits

Author SHA1 Message Date
Simon Cruanes
4d852f3cd3 fix: %X for percent_encode; use percent_decode in parse_query 2019-11-26 19:22:21 -06:00
Simon Cruanes
eab754ec95 test: use qtest to test utils 2019-11-26 19:11:37 -06:00
Simon Cruanes
b0dbc1c057 feat: add Tiny_httpd_util.parse_query for query decoding 2019-11-26 19:11:22 -06:00
Simon Cruanes
9eae697ded refactor: improve code of percent encode/decode 2019-11-26 19:10:43 -06:00
Simon Cruanes
6852912fbb feat(bin): set charset to utf8 2019-11-26 19:07:20 -06:00
Simon Cruanes
98642811bc feat: autodetect ipv6 address 2019-11-26 18:09:46 -06:00
Simon Cruanes
b7e458c0c4 feat: support ipv6 address 2019-11-26 18:02:18 -06:00
Simon Cruanes
3e28be80ec doc: harmonize section headers in docs 2019-11-25 21:06:27 -06:00
Simon Cruanes
d1828fdcaa prepare for 0.2 2019-11-22 17:56:10 -06:00
Simon Cruanes
61e5badf17 Merge release 0.1 back 2019-11-22 17:48:35 -06:00
Simon Cruanes
48a2d3980b feat(bin): count number of hidden files 2019-11-22 14:40:36 -06:00
Simon Cruanes
6ddc38a7c1 feat(bin): use details for hiding hidden files by default 2019-11-22 14:33:00 -06:00
Simon Cruanes
2b95c181b8 fix: improved percent encoding of paths 2019-11-22 13:45:37 -06:00
Simon Cruanes
4aaf77b261 feat: add percent encoding/decoding
close #7
2019-11-22 13:36:18 -06:00
Simon Cruanes
440834ca13 feat(bin): better human-size display 2019-11-22 13:09:59 -06:00
Simon Cruanes
b98be15813 chore: add tags to opam 2019-11-21 09:55:20 -06:00
Simon Cruanes
3824966217 feat: in http_of_dir, sort entries and display their size 2019-11-21 08:17:48 -06:00
Simon Cruanes
cac954f10a fix(http_of_dir): handle bad symlinks
close #6
2019-11-19 18:27:32 -06:00
Simon Cruanes
20275c164f improve docs and opam, tidy up for 0.1; rename stream 2019-11-18 23:18:46 -06:00
Simon Cruanes
f548041263 improve docs and opam, tidy up for 0.1 2019-11-18 23:12:33 -06:00
Simon Cruanes
8bfcf3673a feat: add host field to request 2019-11-18 23:04:23 -06:00
Simon Cruanes
3ac031b367 feat: add semaphore to limit number of simultaneous connections 2019-11-18 22:44:08 -06:00
Simon Cruanes
046ac43bac doc: proper titles 2019-11-18 22:13:35 -06:00
Simon Cruanes
2024d2d1c2 update doc 2019-11-18 22:09:31 -06:00
Simon Cruanes
95248a132c add more doc 2019-11-18 22:03:01 -06:00
Simon Cruanes
3048bfcc82 feat(http_of_dir): basic cache control with mtime in etag 2019-11-18 20:19:57 -06:00
Simon Cruanes
506292c587 fix: break properly on empty read in Stream_.read_line 2019-11-18 19:49:06 -06:00
Simon Cruanes
fba2af546c feat(http_of_dir): better parsing of max-upload size 2019-11-18 19:06:12 -06:00
Simon Cruanes
9c84f95e12 feat: simplify type of streams 2019-11-18 19:06:12 -06:00
Simon Cruanes
e75e97a559 fix: remove debug msg 2019-11-18 19:06:12 -06:00
Simon Cruanes
3245647dc9 improve API for tiny_httpd 2019-11-18 19:06:12 -06:00
Simon Cruanes
989971bb04 feat: use rust-like streams, much better 2019-11-18 19:06:12 -06:00
Simon Cruanes
8ba3c823c2 refactor API for streams, heavy bugfixing 2019-11-17 21:44:37 -06:00
Simon Cruanes
939b183a50 wip: new IO API with streams 2019-11-17 19:10:49 -06:00
Simon Cruanes
76408b7e39 wip: IO streams 2019-11-17 17:40:26 -06:00
Simon Cruanes
460492ded0 feat: use more precise error codes; improve http_of_dir 2019-11-17 17:36:04 -06:00
Simon Cruanes
7f68812312 feat: allow delete and use it in http_of_dir 2019-11-17 17:15:52 -06:00
Simon Cruanes
7b59670d60 feat(bin): accept PUT method for uploading up to max size 2019-11-17 16:52:42 -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
833a523cab chore: update travis 2019-11-17 16:00:39 -06:00
Simon Cruanes
3c5189a663 rename to tiny_httpd 2019-11-17 12:18:15 -06:00
Simon Cruanes
49b46b1c4e bin: first full version of http_of_dir 2019-11-17 12:09:16 -06:00
Simon Cruanes
43df91110c feat: support chunked output streams in responses; set some socket opts 2019-11-17 12:08:52 -06:00
Simon Cruanes
bca1466fe5 wip: simple binary for serving a directory 2019-11-17 11:37:59 -06:00
Simon Cruanes
6b4deb55f9 refactor: modify API 2019-11-17 11:37:42 -06:00
Simon Cruanes
2e66a92e68 fix: compat pre 4.05 2019-11-17 10:30:23 -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
bd3d4c591d have a reusable buffer along with in_channel 2019-11-15 19:14:48 -06:00
Simon Cruanes
ea09e5507f feat: support 100-continue
close #2
2019-11-15 19:06:04 -06:00
Simon Cruanes
aa51327d6a feat: callbacks for request and response 2019-11-14 00:03:28 -06:00