Skip to content

using a precursor to lwt_direct for an async backend #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@
(iostream-camlzip (>= 0.2.1))
(logs :with-test)
(odoc :with-doc)))

(package
(name tiny_httpd_lwt)
(synopsis "Tiny_httpd backend based on lwt.unix for OCaml 5")
(depends
(tiny_httpd (= :version))
(lwt (>= 5.0))
base-unix
(logs :with-test)
(odoc :with-doc)))
2 changes: 2 additions & 0 deletions echo_lwt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec dune exec --display=quiet --profile=release "examples/echo_lwt.exe" -- $@
16 changes: 14 additions & 2 deletions examples/dune
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,23 @@
(modules sse_client)
(libraries unix))

(library
(name example_vfs)
(wrapped false)
(modules vfs)
(libraries tiny_httpd))

(executable
(name echo)
(flags :standard -warn-error -a+8)
(modules echo vfs)
(libraries tiny_httpd logs tiny_httpd_camlzip tiny_httpd.multipart-form-data))
(modules echo)
(libraries tiny_httpd logs tiny_httpd_camlzip tiny_httpd.multipart-form-data example_vfs))

(executable
(name echo_lwt)
(flags :standard -warn-error -a+8)
(modules echo_lwt)
(libraries tiny_httpd tiny_httpd_lwt logs tiny_httpd_camlzip tiny_httpd.multipart-form-data example_vfs))

(executable
(name writer)
Expand Down
Loading
Loading