Generic RPC header get function.
Gets header from request.
The function returns the following error codes:
E_EMPTY
if headers array is empty.E_NOT_FOUND
if header has not been found.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(rpc_header_type), | intent(inout) | :: | headers(:) |
Header type array. |
||
character(len=*), | intent(in) | :: | name |
Header name. |
||
character(len=:), | intent(out), | allocatable | :: | value |
Header value. |
Gets header from request.
The function returns the following error codes:
E_EMPTY
if headers array is empty.E_CORRUPT
if headers array is not allocated.E_NOT_FOUND
if header has not been found.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(rpc_request_type), | intent(inout) | :: | request |
Request type. |
||
character(len=*), | intent(in) | :: | name |
Header name. |
||
character(len=:), | intent(out), | allocatable | :: | value |
Header value. |
Gets header from response.
The function returns the following error codes:
E_EMPTY
if headers array is empty.E_CORRUPT
if headers array is not allocated.E_NOT_FOUND
if header has not been found.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(rpc_response_type), | intent(inout) | :: | response |
Response type. |
||
character(len=*), | intent(in) | :: | name |
Header name. |
||
character(len=:), | intent(out), | allocatable | :: | value |
Header value. |