File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ module Byte_stream = Tiny_httpd_stream
9292
9393(* * {2 Main Server Type} *)
9494
95+ (* * @inline *)
9596include module type of struct include Tiny_httpd_server end
9697
9798(* * {2 Utils} *)
Original file line number Diff line number Diff line change 11
22(* * HTTP server.
33
4- This library implements a very simple, basic HTTP/1.1 server using blocking
4+ This module implements a very simple, basic HTTP/1.1 server using blocking
55 IOs and threads.
66
77 It is possible to use a thread pool, see {!create}'s argument [new_thread].
8+
9+ @since NEXT_RELEASE
810*)
911
1012type buf = Tiny_httpd_buf .t
Original file line number Diff line number Diff line change 11
2+ (* * Byte streams.
3+
4+ These used to live in {!Tiny_httpd} but are now in their own module.
5+ @since 0.12 *)
6+
27type hidden
8+ (* * Type used to make {!t} unbuildable via a record literal. Use {!make} instead. *)
39
410type t = {
511 mutable bs : bytes ;
@@ -33,8 +39,10 @@ type t = {
3339 See {!Byte_stream} for more details. *)
3440
3541val close : t -> unit
42+ (* * Close stream *)
3643
3744val empty : t
45+ (* * Stream with 0 bytes inside *)
3846
3947val of_chan : ?buf_size : int -> in_channel -> t
4048(* * Make a buffered stream from the given channel. *)
You can’t perform that action at this time.
0 commit comments