Curl_handler
. Each supported protocol defines one of those in lib/url.c
there is an array of pointers to such handlers called protocols[]
.https://example.com
that is https
and for imaps://example.com
it is imaps
. Using the provided scheme, libcurl sets the conn->handler
pointer to the handler struct for the protocol that handles this URL.