Skip to content

Commit 91e835e

Browse files
committed
docstrings
1 parent 02500df commit 91e835e

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

src/Tiny_httpd.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ module Byte_stream = Tiny_httpd_stream
9292

9393
(** {2 Main Server Type} *)
9494

95+
(** @inline *)
9596
include module type of struct include Tiny_httpd_server end
9697

9798
(** {2 Utils} *)

src/Tiny_httpd_server.mli

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
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

1012
type buf = Tiny_httpd_buf.t

src/Tiny_httpd_stream.mli

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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+
27
type hidden
8+
(** Type used to make {!t} unbuildable via a record literal. Use {!make} instead. *)
39

410
type t = {
511
mutable bs: bytes;
@@ -33,8 +39,10 @@ type t = {
3339
See {!Byte_stream} for more details. *)
3440

3541
val close : t -> unit
42+
(** Close stream *)
3643

3744
val empty : t
45+
(** Stream with 0 bytes inside *)
3846

3947
val of_chan : ?buf_size:int -> in_channel -> t
4048
(** Make a buffered stream from the given channel. *)

0 commit comments

Comments
 (0)