From 26e082d13b74c6f4bd67fb83336bdc9293d29418 Mon Sep 17 00:00:00 2001 From: Alexander Tuzaev Date: Wed, 30 Oct 2024 16:36:31 +0300 Subject: [PATCH 1/4] Added reference on e-json example for Dream.json --- src/dream.mli | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dream.mli b/src/dream.mli index 27117615..8c5fd4fe 100644 --- a/src/dream.mli +++ b/src/dream.mli @@ -459,7 +459,11 @@ val json : ?headers:(string * string) list -> string -> response promise (** Same as {!Dream.respond}, but adds [Content-Type: application/json]. See - {!Dream.application_json}. *) + {!Dream.application_json}. + + See example + {{:https://github.com/aantron/dream/tree/master/example/e-json#e-json} + [e-json]}. *) val redirect : ?status:[< redirection ] -> From 5899950442664cebb5248e7ce5fcc5462a70622d Mon Sep 17 00:00:00 2001 From: Alexander Tuzaev Date: Wed, 30 Oct 2024 18:14:41 +0300 Subject: [PATCH 2/4] Changed link to #files anchor --- src/dream.mli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dream.mli b/src/dream.mli index 8c5fd4fe..671722a4 100644 --- a/src/dream.mli +++ b/src/dream.mli @@ -462,7 +462,7 @@ val json : {!Dream.application_json}. See example - {{:https://github.com/aantron/dream/tree/master/example/e-json#e-json} + {{:https://github.com/aantron/dream/tree/master/example/e-json#files} [e-json]}. *) val redirect : From f264fb23d35952f7a55a71540c08f3b4d0f8ecdb Mon Sep 17 00:00:00 2001 From: Alexander Tuzaev Date: Fri, 1 Nov 2024 11:44:20 +0300 Subject: [PATCH 3/4] Fixed link's anchor and text --- src/dream.mli | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/dream.mli b/src/dream.mli index 671722a4..71d740c4 100644 --- a/src/dream.mli +++ b/src/dream.mli @@ -459,9 +459,7 @@ val json : ?headers:(string * string) list -> string -> response promise (** Same as {!Dream.respond}, but adds [Content-Type: application/json]. See - {!Dream.application_json}. - - See example + {!Dream.application_json} and example {{:https://github.com/aantron/dream/tree/master/example/e-json#files} [e-json]}. *) @@ -922,7 +920,7 @@ val origin_referrer_check : middleware - their value must match [Host:] Responds with [400 Bad Request] if the check fails. See example - {{:https://github.com/aantron/dream/tree/master/example/e-json#security} + {{:https://github.com/aantron/dream/tree/master/example/e-json#files} [e-json]}. Implements the From a2f39867a040f44621e6b86e3b3c9ec6fdf1b881 Mon Sep 17 00:00:00 2001 From: Alexander Tuzaev Date: Fri, 1 Nov 2024 11:52:17 +0300 Subject: [PATCH 4/4] Reverted security anchor --- src/dream.mli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dream.mli b/src/dream.mli index 71d740c4..708bba04 100644 --- a/src/dream.mli +++ b/src/dream.mli @@ -920,7 +920,7 @@ val origin_referrer_check : middleware - their value must match [Host:] Responds with [400 Bad Request] if the check fails. See example - {{:https://github.com/aantron/dream/tree/master/example/e-json#files} + {{:https://github.com/aantron/dream/tree/master/example/e-json#security} [e-json]}. Implements the