HTTP-RPC API status message.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | API_STATUS_NKEYS | = | 7 |
Number of elements in derived type. |
integer, | public, | parameter | :: | API_STATUS_LEN | = | 32 |
Max. length of element values. |
Returns whether api status types are equal.
Returns .true.
if given API status types are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(api_status_type), | intent(in) | :: | api1 |
The first status type. |
||
type(api_status_type), | intent(in) | :: | api2 |
The second status type. |
API status type that stores an HTTP-RPC API response.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=API_STATUS_LEN), | public | :: | version | = | ' ' |
Server application version. |
|
character(len=API_STATUS_LEN), | public | :: | dmpack | = | DM_VERSION_STRING |
Server library version. |
|
character(len=API_STATUS_LEN), | public | :: | host | = | ' ' |
Server host name. |
|
character(len=API_STATUS_LEN), | public | :: | server | = | ' ' |
Server software (web server). |
|
character(len=API_STATUS_LEN), | public | :: | timestamp | = | TIME_DEFAULT |
Server date and time in ISO 8601. |
|
character(len=API_STATUS_LEN), | public | :: | message | = | ' ' |
Status message. |
|
integer, | public | :: | error | = | E_NONE |
Error code. |
Reads API status type from given string. Only keys found in the
string are overwritten in the derived type. No error is returned if
the string does not contain any of the keys. The function returns
E_EMPTY
if the passed string is empty.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
String representation of API status. |
||
type(api_status_type), | intent(out) | :: | api |
Result. |
Returns .true.
if given API status types are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(api_status_type), | intent(in) | :: | api1 |
The first status type. |
||
type(api_status_type), | intent(in) | :: | api2 |
The second status type. |
Returns string representation of given API status type. The string contains new-line characters.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(api_status_type), | intent(inout) | :: | api |
API status type. |
String representation.