73 Commits

Author SHA1 Message Date
Anton Bachin
8c431a2af2 Simplify 5-promise, now that it is not a-promise 2021-04-05 00:49:25 +03:00
Anton Bachin
a8306f998b Adjust links after example reordering 2021-04-05 00:14:19 +03:00
Anton Bachin
29358cf376 Reorder some examples 2021-04-05 00:08:28 +03:00
Anton Bachin
65fe6bd258 Improve examples 2021-04-04 23:09:13 +03:00
Xavier Van de Woestyne
420c49f3ee
Fix some dead links on the tutorial (#2) 2021-04-04 14:44:43 +03:00
Anton Bachin
e89900266a Improve session docs and tweak API 2021-04-01 11:53:13 +03:00
Anton Bachin
98bc375ad0 Improve GraphQL; include GraphiQL 2021-04-01 01:02:07 +03:00
Anton Bachin
43dfd36731 Improve WebSocket docs 2021-03-31 16:57:33 +03:00
Anton Bachin
9efed30782 File upload rework 2021-03-31 12:34:03 +03:00
Anton Bachin
4a315b3252 Sketch example/e-json 2021-03-30 19:50:14 +03:00
Anton Bachin
b98f1728cc Polish cookies 2021-03-30 16:26:11 +03:00
Anton Bachin
00e236898d Polish responses 2021-03-29 21:28:33 +03:00
Anton Bachin
644b363fda Sketch example/w-query 2021-03-29 20:20:25 +03:00
Anton Bachin
4e0d5efefe Sketch example/r-template-stream 2021-03-29 00:44:41 +03:00
Anton Bachin
802452e57e Sketch example/r-template 2021-03-29 00:01:35 +03:00
Anton Bachin
ab18ad938e Sketch example/r-hello 2021-03-29 00:00:50 +03:00
Anton Bachin
54cc84c486 Sketch example/w-template-stream 2021-03-28 23:15:47 +03:00
Anton Bachin
c5ecca90af Body rework
- Switch to single-chunk-based API rather than multi-shot callbacks.
- Expose explicit flush and close.
- Send exceptions to readers and writers.
2021-03-28 21:48:59 +03:00
Anton Bachin
6336d24640 Sketch example/w-server-sent-events 2021-03-27 23:02:57 +03:00
Anton Bachin
ad0c4c3eba Sketch example/w-long-polling 2021-03-27 22:22:46 +03:00
Anton Bachin
65f4104b0c Sketch example/j-stream 2021-03-27 21:08:27 +03:00
Anton Bachin
78ac5f42ad Code of example/d-form 2021-03-27 09:19:06 +03:00
Anton Bachin
77f9981c3c Sketch example/c-cookie 2021-03-27 00:33:29 +03:00
Anton Bachin
b29fe86101 Re-sketch example/b-session 2021-03-26 23:25:22 +03:00
Anton Bachin
ee8856fb4f Write example/a-promise 2021-03-26 22:38:40 +03:00
Anton Bachin
a0f4753ae2 Example text tweaks 2021-03-26 21:53:09 +03:00
Anton Bachin
05d1bb5d18 Write example/9-log 2021-03-26 21:41:35 +03:00
Anton Bachin
af1b8a4f14 Write example/8-error 2021-03-26 21:05:21 +03:00
Anton Bachin
82723a4881 Write example/7-debug 2021-03-26 11:48:40 +03:00
Anton Bachin
30c111e8ea mv catch.ml debug.ml 2021-03-26 01:53:58 +03:00
Anton Bachin
0054207f21 Write example/6-template 2021-03-26 01:20:37 +03:00
Anton Bachin
6cac55eaa4 Test bodies, body streaming 2021-03-25 15:43:47 +03:00
Anton Bachin
fbe24a23e4 Add "Scroll down" notice to example directory 2021-03-25 12:12:57 +03:00
Anton Bachin
c1f994f416 Write example/5-echo 2021-03-25 11:58:09 +03:00
Anton Bachin
c32f918bc7 Tweak examples index 2021-03-25 10:25:17 +03:00
Anton Bachin
c7e5ece894 Rewrite example/4-counter 2021-03-25 10:20:27 +03:00
Anton Bachin
2bc8efe40a Reorder examples 2021-03-25 01:59:19 +03:00
Anton Bachin
891fb0f688 Rewrite example/3-router 2021-03-25 01:54:26 +03:00
Anton Bachin
3550b7bb5f Interchange examples 3 and 4 2021-03-24 22:08:21 +03:00
Anton Bachin
1e191db080 Tidy example/2-middleware 2021-03-24 22:07:51 +03:00
Anton Bachin
f169b23bec Tidy example/1-hello 2021-03-24 20:49:55 +03:00
Anton Bachin
63e9c8e103 Examples: reduce boilerplate 2021-03-24 20:34:40 +03:00
Anton Bachin
bc60af4c54 dream.opam: fix -p in build command 2021-03-24 19:11:23 +03:00
Anton Bachin
fe3f89afe9 Automatically configure the terminal 2021-03-24 18:24:46 +03:00
Anton Bachin
ec680fd405 Fix log month off-by-1 error 2021-03-24 17:49:11 +03:00
Anton Bachin
eead553cbd Revise example/1-hello/README.md 2021-03-24 17:46:21 +03:00
Anton Bachin
bac130fb5d Reorder examples 2021-03-24 17:33:35 +03:00
Anton Bachin
320b1db75e GraphQL skeleton support
Still needs:

- Subscriptions via WebSockets.
- Streaming.
- Variables.
2021-03-24 10:56:21 +03:00
Anton Bachin
0074b391bc Echo handler for debugging 2021-03-24 10:47:39 +03:00
Anton Bachin
a30edb3a81 Very preliminary multipart/form-data receiving
There are several defects due to the API of multipart-form-data, which
will need patching upstream. The Dream API needs simplification, in
particular Dream.begin_upload should be removed.
2021-03-23 21:33:33 +03:00