From 7365dfcdd5f9104c195b60b5e62b7db4e7c54d94 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Tue, 8 Aug 2023 16:37:38 -0400 Subject: [PATCH] doc --- src/Tiny_httpd_server.mli | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Tiny_httpd_server.mli b/src/Tiny_httpd_server.mli index 1910b32b..f3c2f6b9 100644 --- a/src/Tiny_httpd_server.mli +++ b/src/Tiny_httpd_server.mli @@ -537,7 +537,12 @@ val set_top_handler : t -> (byte_stream Request.t -> Response.t) -> unit This handler is called with any request not accepted by any handler installed via {!add_path_handler}. - If no top handler is installed, unhandled paths will return a [404] not found. *) + If no top handler is installed, unhandled paths will return a [404] not found + + This used to take a [string Request.t] but it now takes a [byte_stream Request.t] + since NEXT_RELEASE . Use {!Request.read_body_full} to read the body into + a string if needed. +*) val add_route_handler : ?accept:(unit Request.t -> (unit, Response_code.t * string) result) ->