Generic RPC post function.
Sends a single derived type in Namelist format to a given URL, with optional authentication and compression. The URL has to be the API endpoint that accepts HTTP POST requests.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(rpc_request_type), | intent(inout) | :: | request |
RPC request type. |
||
type(rpc_response_type), | intent(out) | :: | response |
RPC response type. |
||
class(*), | intent(inout) | :: | type |
Derived type. |
||
character(len=*), | intent(in), | optional | :: | url |
URL of RPC API (may include port). |
|
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 ( |
Sends multiple derived types concurrently in Namelist format to the given URL, with optional authentication and compression. The URL has to be the API endpoint that accepts HTTP POST requests.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(rpc_request_type), | intent(inout) | :: | requests(:) |
RPC request type array. |
||
type(rpc_response_type), | intent(out), | allocatable | :: | responses(:) |
RPC response type array. |
|
class(*), | intent(inout) | :: | types(:) |
Derived type array. |
||
character(len=*), | intent(in), | optional | :: | url |
URL of RPC API (may include port). |
|
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 ( |
|
logical, | intent(in), | optional | :: | sequential |
Sequential instead of concurrent transfer. |