dm_rpc_url Function

public function dm_rpc_url(host, port, base, endpoint, tls) result(url)

Returns allocatable string of URL to HTTP-RPC API endpoint. Uses the URL API of libcurl to create the URL. The base path and the endpoint must both start with a /.

The function returns an empty string on error.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: host

IP or FQDN of remote host.

integer, intent(in), optional :: port

API port (up to 5 digits).

character(len=*), intent(in), optional :: base

API base path (for example, /api/v1).

character(len=*), intent(in), optional :: endpoint

API endpoint (for example, /observ).

logical, intent(in), optional :: tls

TLS encryption (HTTPS).

Return Value character(len=:), allocatable

HTTP-RPC API endpoint URL.


Calls

proc~~dm_rpc_url~~CallsGraph proc~dm_rpc_url dm_rpc_url curl_url curl_url proc~dm_rpc_url->curl_url curl_url_cleanup curl_url_cleanup proc~dm_rpc_url->curl_url_cleanup curl_url_get curl_url_get proc~dm_rpc_url->curl_url_get curl_url_set curl_url_set proc~dm_rpc_url->curl_url_set interface~dm_itoa dm_itoa proc~dm_rpc_url->interface~dm_itoa