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, file, list type~rpc_header_type rpc_header_type type~rpc_request_type->type~rpc_header_type headers

Components

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

HTTP Auth.

integer, public :: method = RPC_METHOD_GET

HTTP method (GET, POST, PUT).

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.

integer(kind=i8), public :: modified_since = 0_i8

If-modified-since timestamp (Epoch).

logical, public :: follow_location = .true.

Follow HTTP 3xx redirects.

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

Request payload (POST).

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

Request payload file path (PUT).

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.

type(rpc_header_type), public, allocatable :: headers(:)

HTTP request header.

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

C-interoperable write callback function.