mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
details
This commit is contained in:
parent
d5f9eacc81
commit
533a42a661
2 changed files with 1 additions and 5 deletions
|
|
@ -123,7 +123,7 @@ let () =
|
|||
<li><pre>/upload/'path' (PUT) to upload a file</pre></li>\n\
|
||||
<li><pre>/zcat/'path' (GET) to download a file (compressed)</pre></li>\n\
|
||||
<li><pre>/stats/ (GET) to access statistics</pre></li>\n\
|
||||
<li><pre><a href=\"/vfs/\">/vfs/</a> (GET) to access statistics</pre></li>\n\
|
||||
<li><pre><a href=\"/vfs/\">/vfs/</a> (GET) to access a VFS embedded in the binary</pre></li>\n\
|
||||
</ul></body>"
|
||||
in
|
||||
S.Response.make_string ~headers:["content-type", "text/html"] @@ Ok s);
|
||||
|
|
|
|||
|
|
@ -47,8 +47,6 @@ let decode_deflate_stream_ ~buf_size (is:S.byte_stream) : S.byte_stream =
|
|||
)
|
||||
()
|
||||
|
||||
;;
|
||||
|
||||
let encode_deflate_stream_ ~buf_size (is:S.byte_stream) : S.byte_stream =
|
||||
S._debug (fun k->k "wrap stream with deflate.encode");
|
||||
let refill = ref true in
|
||||
|
|
@ -117,9 +115,7 @@ let encode_deflate_stream_ ~buf_size (is:S.byte_stream) : S.byte_stream =
|
|||
S.Response.fail_raise ~code:400
|
||||
"deflate: error during compression:\n%s %s" e1 e2
|
||||
)
|
||||
|
||||
()
|
||||
;;
|
||||
|
||||
let split_on_char ?(f=fun x->x) c s : string list =
|
||||
let rec loop acc i =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue