Commit Graph

  • acc2efc8fe Move WebSocket adapter to package dream-httpaf Anton Bachin 2022-01-19 16:21:05 +03:00
  • a8d6e5c06d WebSocket adapter should use bare stream Anton Bachin 2022-01-19 15:42:44 +03:00
  • 5cd57e1ea1 Forward exceptions across streams Anton Bachin 2022-01-15 19:45:34 +03:00
  • 4dce6a7a4d Tweak indentation Anton Bachin 2022-01-11 19:54:52 +03:00
  • d418a79165 Update example esy.jsons Anton Bachin 2022-01-05 00:42:06 +03:00
  • 03e4d37cb5 ReScript example: needs an esy install Anton Bachin 2022-01-01 05:58:41 +03:00
  • 024131b0eb
    bs-platform, bs-webapi -> rescript, rescript-webapi (#188) Glenn Slotte 2022-01-01 03:53:08 +01:00
  • 702d4b7407 Re-alphabetize dependencies #188 Anton Bachin 2022-01-01 05:52:24 +03:00
  • 1d2018cdd3 fix(example/w-fullstack-rescript) bs-platform, bs-webapi -> rescript, rescript-webapi glennsl 2021-12-31 14:01:11 +01:00
  • 84128adee6 Expose dream-pure type equalities Anton Bachin 2021-12-29 20:29:06 +03:00
  • 0664abd933 Body caching for both requests and responses Anton Bachin 2021-12-29 15:55:57 +03:00
  • fa815c0259 Add Message.set_target Anton Bachin 2021-12-29 15:05:38 +03:00
  • 536c4a41db Provide some common pre-allocated streams Anton Bachin 2021-12-22 16:10:20 +03:00
  • 2ecfc044d4 Package dream requires Alcotest for testing Anton Bachin 2021-12-22 07:47:28 +03:00
  • 3acb3cc799 Cache body promises when using Dream.body Anton Bachin 2021-12-22 01:35:45 +03:00
  • 56504439b6 Fix Dream.set_body Anton Bachin 2021-12-22 01:26:04 +03:00
  • 95f6a6f895 Restore multipart upload state Anton Bachin 2021-12-22 01:00:21 +03:00
  • 8e7c711dda Fix memory sessions (silly typo during refactor) Anton Bachin 2021-12-22 01:04:33 +03:00
  • fe537f4aa9 dream-httpaf uses lwt_ppx Anton Bachin 2021-12-22 00:28:19 +03:00
  • a8357030aa
    dream-pure depends on lwt_ppx (#186) Felix Krull 2021-12-21 22:26:16 +01:00
  • f15fa2f7e6 Package dream also directly needs lwt_ppx #186 Anton Bachin 2021-12-22 00:18:24 +03:00
  • cd59e03a32 Move multipart_form dependency to dream.opam Anton Bachin 2021-12-22 00:14:30 +03:00
  • 4fbb0c56f4 dream-pure does not depend on multipart_form Anton Bachin 2021-12-22 00:10:44 +03:00
  • 812bcad8c4 message.mli: prune type abbreviations Anton Bachin 2021-12-21 13:41:33 +03:00
  • 6f3b2a235a mv inmost.ml message.ml Anton Bachin 2021-12-21 13:32:44 +03:00
  • 65dc17f56f Move dependencies to dream-pure Felix Krull 2021-12-20 23:30:34 +01:00
  • 9df46cb329 inmost.ml: clarify some record fields Anton Bachin 2021-12-19 14:44:57 +03:00
  • 553567f2d8 Sort inmost.ml to match all the .mli files Anton Bachin 2021-12-19 14:41:17 +03:00
  • d2b8e0f7a0 Rename Dream__localhost to match its directory Anton Bachin 2021-12-19 14:28:29 +03:00
  • 85f3aec86e WebSocket write: set FIN bit by default Anton Bachin 2021-12-18 22:58:53 +03:00
  • 773c346416 Move cipher tests from pure to server tests Anton Bachin 2021-12-18 22:47:33 +03:00
  • 71e06b78eb Catch up the tests Anton Bachin 2021-12-18 22:45:32 +03:00
  • bfa5ab1c5c Tweak deprecation message formatting Anton Bachin 2021-12-18 22:31:36 +03:00
  • 64d7df3538 mv test/expect/middleware test/expect/server Anton Bachin 2021-12-18 22:25:45 +03:00
  • a680f4be41 Catch up most of the examples Anton Bachin 2021-12-18 22:20:15 +03:00
  • d1ba236f1d Expose Stream API and reinterpret WebSockets Anton Bachin 2021-12-18 18:12:18 +03:00
  • 1da1452bfc Compose dream.ml explicitly (delete most includes) Anton Bachin 2021-12-17 08:59:48 +03:00
  • ed4c24f6a8 Move helpers Anton Bachin 2021-12-17 08:01:07 +03:00
  • 2335f69fbd Rename dream.middleware to dream.server Anton Bachin 2021-12-17 07:47:29 +03:00
  • 9e8bc2fb8e mv src/middleware src/server Anton Bachin 2021-12-17 07:31:52 +03:00
  • 5a54d5c1ee Rename "locals" to "fields" Anton Bachin 2021-12-17 07:26:57 +03:00
  • dd41df9e65 Break up dream-pure.mli Anton Bachin 2021-12-16 22:46:50 +03:00
  • 73c56ce1c4 Fix some warnings Anton Bachin 2021-12-16 22:10:08 +03:00
  • 110575db83 Factor out dream-httpaf Anton Bachin 2021-12-16 22:05:42 +03:00
  • 7aa5e7ba1c dream-pure no longer depends on multipart_form Anton Bachin 2021-12-16 21:33:11 +03:00
  • d7e81a28fe Convert to mutable requests and responses Anton Bachin 2021-12-16 20:44:02 +03:00
  • 865217859f Cut request_from_http from dream-pure Anton Bachin 2021-12-14 19:37:41 +03:00
  • ba859abb23 Move error types from dream-pure to server Anton Bachin 2021-12-14 19:34:26 +03:00
  • 918cb3cb35 Move multipart state from dream-pure and break it Anton Bachin 2021-12-14 19:12:25 +03:00
  • 5d391a62a2 Move all_cookies from dream-pure to server Anton Bachin 2021-12-14 19:05:44 +03:00
  • 267e2de87b Move html and json helpers from dream-pure Anton Bachin 2021-12-14 19:03:24 +03:00
  • 598367067b Move query strings from dream-pure to server Anton Bachin 2021-12-14 18:56:20 +03:00
  • 0c7b464f90 Move paths and prefixes from dream-pure to server Anton Bachin 2021-12-14 18:47:08 +03:00
  • 3dcb88d6ea Move https field from dream-pure to server Anton Bachin 2021-12-14 13:40:24 +03:00
  • 037645f5ff Move client field from dream-pure to server Anton Bachin 2021-12-14 13:27:07 +03:00
  • af8085a5f1 Delete the "app" concept Anton Bachin 2021-12-14 11:12:36 +03:00
  • b355e00f8f Pass error handlers around explicitly Anton Bachin 2021-12-14 11:05:07 +03:00
  • 640a1b218b Replace ~debug flag by separate error handler Anton Bachin 2021-12-14 10:40:56 +03:00
  • 6c726d5271 Move the https field to requests Anton Bachin 2021-12-13 19:24:03 +03:00
  • ebeac7c735 Reorder dream-pure.mli a bit Anton Bachin 2021-12-13 19:17:05 +03:00
  • 3da5e2354d Move site prefix handling to a middleware Anton Bachin 2021-12-13 19:11:54 +03:00
  • 2529b9adda Set secrets using a middleware Anton Bachin 2021-12-13 18:59:42 +03:00
  • d81b1986b6 Delete per-server "global" variables as a concept Anton Bachin 2021-12-13 17:51:48 +03:00
  • bb2924de0b Assign request ids lazily and implicitly Anton Bachin 2021-12-13 17:45:20 +03:00
  • e106e6ec37 Fix .gitignore and commit dream-pure.opam Anton Bachin 2021-12-13 14:54:16 +03:00
  • 655be1f754 Begin delimiting dream-pure with an .mli file Anton Bachin 2021-12-13 14:48:57 +03:00
  • 3f50f75a01 Move dream-pure to its own opam package Anton Bachin 2021-12-12 11:48:56 +03:00
  • 2f40d67224 dream.pure should not depend on dream.cipher Anton Bachin 2021-12-12 12:12:52 +03:00
  • ed1c949226 Add Dream.with_client_stream Anton Bachin 2021-12-11 23:40:21 +03:00
  • ce6c0084a0 Streams: expose Dream.client_stream and fix tests Anton Bachin 2021-12-11 22:04:53 +03:00
  • ff6f1d2457 Rename phantom types to client/server Anton Bachin 2021-12-11 21:51:59 +03:00
  • 1e74850608 Move the client to its own repository Anton Bachin 2021-12-11 19:26:05 +03:00
  • f69b95644a Streams: split into client and server streams Anton Bachin 2021-12-11 17:13:46 +03:00
  • 4afbe19046 Streams: tweak writer continuation order, labels Anton Bachin 2021-12-11 16:20:43 +03:00
  • faf81b4c2a Streams: don't buffer even one write Anton Bachin 2021-12-11 15:03:57 +03:00
  • 1e1e7b3958 Streams: separate read and write ends Anton Bachin 2021-12-11 14:20:35 +03:00
  • 38bdb60971 Client: sketch WebSocket client Anton Bachin 2021-12-09 12:17:32 +03:00
  • 457258e64c Client: sketch redirect loop Anton Bachin 2021-12-09 08:26:18 +03:00
  • b178eda5c7 Client: sketch HTTP pipelining and multiplexing Anton Bachin 2021-12-09 00:13:40 +03:00
  • e95f6be28c Client: bare-bones HTTP/2 support Anton Bachin 2021-12-08 19:45:30 +03:00
  • c9ad93b7c9 Client: primitive HTTPS support Anton Bachin 2021-12-08 17:44:33 +03:00
  • c98d11063c Client: proof-of-concept connection pooling Anton Bachin 2021-12-06 21:36:29 +03:00
  • 560ea7d999 Initial commit of a Dream client library Anton Bachin 2021-12-05 19:40:56 +03:00
  • d94b4a2bf1 Update example about MirageOS #183 Romain Calascibetta 2021-11-29 17:16:37 +01:00
  • 9743279d41 Update the MirageOS codebase Romain Calascibetta 2021-11-29 17:16:24 +01:00
  • 54c4600cb0 Update gluten & tls #182 Romain Calascibetta 2021-11-29 13:45:58 +01:00
  • bf710df1bc WebSocket: a bit of logging and internal docs Anton Bachin 2021-11-29 12:26:25 +03:00
  • f1cec7222f WebSocket: better close handshake handling Anton Bachin 2021-11-29 12:04:17 +03:00
  • 873c048429 WebSocket: expose ping/pong payloads Anton Bachin 2021-11-29 11:00:50 +03:00
  • d21ca95501 WebSocket: read close codes Anton Bachin 2021-11-29 09:38:52 +03:00
  • 0613640568 WebSocket: drain all payloads Anton Bachin 2021-11-29 09:14:50 +03:00
  • 639d59dad1 WebSocket: tweak binary flag Anton Bachin 2021-11-29 08:54:40 +03:00
  • b5c0e77450 Streams: document design decision about FIN bit Anton Bachin 2021-11-28 22:03:31 +03:00
  • c7e37548da dream.ml: remove obsolete internal module Anton Bachin 2021-11-27 20:35:46 +03:00
  • 08fd6d0f64 Primitive WebSocket send backpressure #180 Anton Bachin 2021-11-27 19:47:00 +03:00
  • 587d55b921 Primitive HTTP write backpressure #179 Anton Bachin 2021-11-27 19:05:40 +03:00
  • a339ef917d WebSockets: restore and expose close code sending #178 Anton Bachin 2021-11-27 17:32:36 +03:00
  • ec56e226f9 Restore WebSocket message kind handling Anton Bachin 2021-11-27 17:00:09 +03:00
  • 4e66f78a29 WebSockets: restore FIN handling Anton Bachin 2021-11-27 16:39:52 +03:00
  • 018b459658 Introduce Stream.write type abbreviation Anton Bachin 2021-11-27 16:24:12 +03:00