[−][src]Function git2_curl::register
pub unsafe fn register(handle: Easy)
Register the libcurl backend for HTTP requests made by libgit2.
This function takes one parameter, a handle
, which is used to perform all
future HTTP requests. The handle can be previously configured with
information such as proxies, SSL information, etc.
This function is unsafe largely for the same reasons as
git2::transport::register
:
- The function needs to be synchronized against all other creations of transport (any API calls to libgit2).
- The function will leak
handle
as once registered it is not currently possible to unregister the backend.
This function may be called concurrently, but only the first handle
will
be used. All others will be discarded.