mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
doc
This commit is contained in:
parent
402e3f72e4
commit
7365dfcdd5
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
This handler is called with any request not accepted by any handler
|
||||||
installed via {!add_path_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 :
|
val add_route_handler :
|
||||||
?accept:(unit Request.t -> (unit, Response_code.t * string) result) ->
|
?accept:(unit Request.t -> (unit, Response_code.t * string) result) ->
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue