We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 402e3f7 commit 7365dfcCopy full SHA for 7365dfc
src/Tiny_httpd_server.mli
@@ -537,7 +537,12 @@ val set_top_handler : t -> (byte_stream Request.t -> Response.t) -> unit
537
538
This handler is called with any request not accepted by any handler
539
installed via {!add_path_handler}.
540
- 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
541
+
542
+ This used to take a [string Request.t] but it now takes a [byte_stream Request.t]
543
+ since NEXT_RELEASE . Use {!Request.read_body_full} to read the body into
544
+ a string if needed.
545
+*)
546
547
val add_route_handler :
548
?accept:(unit Request.t -> (unit, Response_code.t * string) result) ->
0 commit comments