package dream
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=bf19c13f0da7e01cc30b8dfaa1fca1dc8b44a06fb6e0eef56d56513952b9bb01
md5=1220f17530522e488653eb91115867e3
Description
Dream is a feature-complete Web framework with a simple programming model and no boilerplate. It provides only two data types, request and response.
Almost everything else is either a built-in OCaml type, or an abbreviation for a bare function. For example, a Web app, known in Dream as a handler, is just an ordinary function from requests to responses. And a middleware is then just a function from handlers to handlers.
Within this model, Dream adds:
- Session management with pluggable back ends.
- A fully composable router.
- Support for HTTP/1.1, HTTP/2, and HTTPS.
- WebSockets.
- GraphQL, including subscriptions and a built-in GraphiQL editor.
- SQL connection pool helpers.
- Server-side HTML templates.
- Automatic secure handling of cookies and forms.
- Unified, internationalization-friendly error handling.
- A neat log, and OCaml runtime configuration.
- Helpers for Web formats, such as Base64url, and a modern cipher.
Because of the simple programming model, everything is optional and composable. It is trivailly possible to strip Dream down to just a bare driver of the various HTTP protocols.
Dream is presented as a single module, whose API is documented on one page. In addition, Dream comes with a large number of examples. Security topics are introduced throughout, wherever they are applicable.
Dependencies (31)
- result
- psq
- faraday-lwt-unix
-
faraday
>= "0.6.1" -
digestif
>= "0.7.2" -
bigstringaf
>= "0.5.0" -
angstrom
>= "0.14.0" - yojson
-
uri
>= "4.2.0" -
ocaml
>= "4.08.0" & < "5.0" -
multipart_form
>= "0.3.0" & < "0.4.0" -
mirage-crypto-rng
>= "0.8.0" & < "0.11.0" -
mirage-crypto
>= "0.8.1" & < "1.0.0" - magic-mime
-
logs
>= "0.5.0" -
ssl
>= "0.5.8" - lwt_ssl
-
lwt_ppx
>= "1.2.2" & <= "5.9.1" - lwt
- hmap
- graphql-lwt
- graphql_parser
-
fmt
>= "0.8.7" -
dune
>= "2.7.0" -
cstruct
>= "6.0.0" -
conf-libev
os != "win32" - caqti-lwt
-
caqti
>= "1.4.0" & < "2.0.0~" - bigarray-compat
-
base64
>= "3.1.0" - base-unix
Dev Dependencies (11)
-
tyxml-ppx
with-test & >= "4.5.0" -
tyxml-jsx
with-test & >= "4.5.0" -
tyxml
with-test & >= "4.5.0" -
reason
with-test -
ppx_yojson_conv
with-test -
ppx_expect
with-test -
lambdasoup
with-test -
crunch
with-test -
caqti-driver-sqlite3
with-test -
bisect_ppx
with-test & >= "2.5.0" -
alcotest
with-test
Used by (11)
-
builder-web
< "0.2.0" -
dream-cli
< "0.2.0" -
dream-encoding
< "0.2.0" -
dream-livereload
< "0.2.0" -
dream-serve
< "1.0.1" - graphql_jsoo_client
- hyper
- osh
- ppx_dream_eml
- universal-portal
-
webauthn
< "0.2.0"
Conflicts (1)
-
tls
>= "0.15.0"