rpc_request_type Derived Type

type, public :: rpc_request_type

HTTP-RPC request type.


Inherits

type~~rpc_request_type~~InheritsGraph type~rpc_request_type rpc_request_type c_ptr c_ptr type~rpc_request_type->c_ptr curl_ptr, list_ptr

Components

Type Visibility Attributes Name Initial
integer, public :: auth = RPC_AUTH_NONE

HTTP Auth.

integer, public :: method = RPC_METHOD_GET

HTTP method (GET, POST).

integer, public :: compression = Z_TYPE_NONE

Use deflate or zstd compression (Z_TYPE_*).

integer, public :: connect_timeout = 30

Connection timeout in seconds.

integer, public :: timeout = 30

Timeout in seconds.

logical, public :: follow_location = .true.

Follow HTTP 3xx redirects.

character(len=:), public, allocatable :: payload

Request payload.

character(len=:), public, allocatable :: content_type

Request payload type (MIME).

character(len=:), public, allocatable :: accept

HTTP Accept header.

character(len=:), public, allocatable :: username

HTTP Basic Auth user name.

character(len=:), public, allocatable :: password

HTTP Basic Auth password.

character(len=:), public, allocatable :: url

Request URL.

character(len=:), public, allocatable :: user_agent

User Agent.

procedure(dm_rpc_callback), public, pointer, nopass :: callback => null()

C-interoperable write callback function.