From 87303e3af4047d1fe6e5c28c0124d8b9a7166f66 Mon Sep 17 00:00:00 2001 From: ygrek Date: Sun, 27 May 2018 23:45:41 -0700 Subject: [PATCH] mark duphandle deprecated ref #31 --- curl.mli | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/curl.mli b/curl.mli index 7464165..0395d75 100644 --- a/curl.mli +++ b/curl.mli @@ -530,11 +530,13 @@ val global_cleanup : unit -> unit val init : unit -> t val reset : t -> unit (** Reset [t] to the default state *) -val duphandle : t -> t +val duphandle : t -> t [@@ocaml.deprecated "collect options and apply to fresh handle explicitly instead"] (** Create the new handle, copying all the options from the supplied [t]. Note that it will also copy [set_writefunction] options and alike, as such both handles (original and new one) will be referencing the same closures, potentially -sharing some state, which may lead to surprising results. *) +sharing some state, which may lead to surprising results. +@deprecated collect options and apply to fresh handle explicitly instead, see also https://github.com/ygrek/ocurl/issues/31 +*) val setopt : t -> curlOption -> unit (** @raise NotImplemented for not implemented option *) val perform : t -> unit -- 2.11.4.GIT