HTTP-RPC API status message.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public, | parameter | :: | API_STATUS_NKEYS | = | 7 |
Number of attributes in derived type. |
| integer, | public, | parameter | :: | API_STATUS_LEN | = | 32 |
Max. length of attribute values. |
Returns .true. if 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) | :: | status1 |
The first status. |
||
| type(api_status_type), | intent(in) | :: | status2 |
The second status. |
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.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string |
String representation of API status. |
||
| type(api_status_type), | intent(out) | :: | status |
Result. |
Returns .true. if given API status types are equal.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(api_status_type), | intent(in) | :: | status1 |
The first status. |
||
| type(api_status_type), | intent(in) | :: | status2 |
The second status. |
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) | :: | status |
API status. |
String representation.
Sets attributes of API status type. This routine does not validate the arguments.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(api_status_type), | intent(inout) | :: | status |
API status. |
||
| character(len=*), | intent(in), | optional | :: | version |
Server application version. |
|
| character(len=*), | intent(in), | optional | :: | dmpack |
Server library version. |
|
| character(len=*), | intent(in), | optional | :: | host |
Server host name. |
|
| character(len=*), | intent(in), | optional | :: | server |
Server software (web server). |
|
| character(len=*), | intent(in), | optional | :: | timestamp |
Server date and time in ISO 8601. |
|
| character(len=*), | intent(in), | optional | :: | message |
Status message. |
|
| integer, | intent(in), | optional | :: | error |
Error code. |