Skip to content

Commit 7365dfc

Browse files
committed
doc
1 parent 402e3f7 commit 7365dfc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Tiny_httpd_server.mli

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,12 @@ val set_top_handler : t -> (byte_stream Request.t -> Response.t) -> unit
537537
538538
This handler is called with any request not accepted by any handler
539539
installed via {!add_path_handler}.
540-
If no top handler is installed, unhandled paths will return a [404] not found. *)
540+
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+
*)
541546

542547
val add_route_handler :
543548
?accept:(unit Request.t -> (unit, Response_code.t * string) result) ->

0 commit comments

Comments
 (0)