Source

ocaml-bitbucket / xcurl.mli

1
2
3
4
5
6
7
8
val ok200 : (int * string) -> [`Ok of string | `Error of [> `Http of (int * string) ]]

val get_string : (Curl.handle -> unit) -> [`Ok of string | `Error of [> `Http of (int * string) ]]
  (** [get_string init] initializes curl handle by [init] 
      then add a write function for the simple string retrieval and perform it.
      It returns the obtained string.
  *)