Skip to content

Commit

Permalink
refactor: make [Cohttp.Body.drain] private
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>

<!-- ps-id: 3cb40937-7500-4f1b-8e9a-a7d5cb282e4f -->
  • Loading branch information
rgrinberg committed Jun 30, 2024
1 parent 6b0d911 commit be6a8d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cohttp-async/src/body.mli
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ type t = [ Cohttp.Body.t | `Pipe of string Pipe.Reader.t ] [@@deriving sexp_of]

include Cohttp.S.Body with type t := t

val drain : t -> unit Deferred.t
val is_empty : t -> [ `True | `False | `Unknown ]
val to_string : t -> string Deferred.t
val to_string_list : t -> string list Deferred.t
val to_pipe : t -> string Pipe.Reader.t
val of_pipe : string Pipe.Reader.t -> t
val map : t -> f:(string -> string) -> t
val as_pipe : t -> f:(string Pipe.Reader.t -> string Pipe.Reader.t) -> t
val to_form : t -> (string * string list) list Deferred.t
val is_empty : t -> [ `True | `False | `Unknown ]

module Private : sig
val write_body :
Expand Down

0 comments on commit be6a8d1

Please sign in to comment.