dm_rpc_request_single Function

public function dm_rpc_request_single(request, response, url, method, payload, content_type, accept, username, password, user_agent, compression) result(rc)

Sends single HTTP request by GET, POST, or PUT method, and with optional deflate or zstd compression.

Arguments

Type IntentOptional Attributes Name
type(rpc_request_type), intent(inout) :: request

RPC request type.

type(rpc_response_type), intent(out) :: response

RPC response type.

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

URL of RPC API (may include port).

integer, intent(in), optional :: method

RPC_METHOD_GET or RPC_METHOD_POST.

character(len=*), intent(inout), optional :: payload

Payload data (for POST only).

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

Payload content type (for POST only).

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

HTTP Accept header.

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

HTTP Basic Auth user name.

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

HTTP Basic Auth password.

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

HTTP User Agent.

integer, intent(in), optional :: compression

Deflate or Zstandard compression of payload for POST requests (Z_TYPE_*).

Return Value integer


Calls

proc~~dm_rpc_request_single~~CallsGraph proc~dm_rpc_request_single dm_rpc_request_single curl_easy_cleanup curl_easy_cleanup proc~dm_rpc_request_single->curl_easy_cleanup curl_easy_getinfo curl_easy_getinfo proc~dm_rpc_request_single->curl_easy_getinfo curl_easy_init curl_easy_init proc~dm_rpc_request_single->curl_easy_init curl_easy_perform curl_easy_perform proc~dm_rpc_request_single->curl_easy_perform curl_easy_setopt curl_easy_setopt proc~dm_rpc_request_single->curl_easy_setopt curl_slist_append curl_slist_append proc~dm_rpc_request_single->curl_slist_append curl_slist_free_all curl_slist_free_all proc~dm_rpc_request_single->curl_slist_free_all proc~dm_f_c_logical dm_f_c_logical proc~dm_rpc_request_single->proc~dm_f_c_logical proc~dm_is_error dm_is_error proc~dm_rpc_request_single->proc~dm_is_error proc~dm_is_ok dm_is_ok proc~dm_rpc_request_single->proc~dm_is_ok proc~dm_rpc_error dm_rpc_error proc~dm_rpc_request_single->proc~dm_rpc_error proc~dm_rpc_error_message dm_rpc_error_message proc~dm_rpc_request_single->proc~dm_rpc_error_message proc~dm_string_is_empty dm_string_is_empty proc~dm_rpc_request_single->proc~dm_string_is_empty proc~dm_z_type_to_encoding dm_z_type_to_encoding proc~dm_rpc_request_single->proc~dm_z_type_to_encoding curl_easy_strerror curl_easy_strerror proc~dm_rpc_error_message->curl_easy_strerror

Called by

proc~~dm_rpc_request_single~~CalledByGraph proc~dm_rpc_request_single dm_rpc_request_single interface~dm_rpc_request dm_rpc_request interface~dm_rpc_request->proc~dm_rpc_request_single