Tiny_httpd_io.InputInput channel (byte source)
type t = {input : bytes -> int -> int -> int;Read into the slice. Returns 0 only if the channel is closed.
close : unit -> unit;Close the input. Must be idempotent.
*)}An input channel, i.e an incoming stream of bytes.
This can be a string, an int_channel, an Unix.file_descr, a decompression wrapper around another input channel, etc.
val of_in_channel : ?close_noerr:bool -> in_channel -> tval of_unix_fd : ?close_noerr:bool -> Unix.file_descr -> tval of_slice : bytes -> int -> int -> tval input : t -> bytes -> int -> int -> intRead into the given slice.
val really_input : t -> bytes -> int -> int -> unitRead exactly len bytes.
val close : t -> unitClose the channel.