@@ -11,12 +11,12 @@ module IO = Tiny_httpd_io
1111include Tiny_httpd_html_
1212(* * @inline *)
1313
14- (* * Write an HTML element to this out channel .
14+ (* * Write an HTML element to this output .
1515 @param top if true, add DOCTYPE at the beginning. The top element should then
1616 be a "html" tag.
1717 @since NEXT_RELEASE
1818 *)
19- let to_out_channel ?(top = false ) (self : elt ) (out : IO.Output.t ) : unit =
19+ let to_output ?(top = false ) (self : elt ) (out : IO.Output.t ) : unit =
2020 let out = Out. create_of_out out in
2121 if top then Out. add_string out " <!DOCTYPE html>\n " ;
2222 self out;
@@ -29,7 +29,7 @@ let to_out_channel ?(top = false) (self : elt) (out : IO.Output.t) : unit =
2929let to_string ?top (self : elt ) : string =
3030 let buf = Buffer. create 64 in
3131 let out = IO.Output. of_buffer buf in
32- to_out_channel ?top self out;
32+ to_output ?top self out;
3333 Buffer. contents buf
3434
3535(* * Convert a list of HTML elements to a string.
@@ -50,13 +50,13 @@ let to_string_top = to_string ~top:true
5050
5151(* * Write a toplevel element to an output channel.
5252 @since NEXT_RELEASE *)
53- let to_out_channel_top = to_out_channel ~top: true
53+ let to_out_channel_top = to_output ~top: true
5454
5555(* * Produce a streaming writer from this HTML element.
5656 @param top if true, add a DOCTYPE. See {!to_out_channel}.
5757 @since NEXT_RELEASE *)
5858let to_writer ?top (self : elt ) : IO.Writer.t =
59- let write oc = to_out_channel ?top self oc in
59+ let write oc = to_output ?top self oc in
6060 IO.Writer. make ~write ()
6161
6262(* * Convert a HTML element to a stream. This might just convert
0 commit comments