Generic RPC header add function.
Adds header to request.
The function returns the following error codes:
E_BOUNDS if headers array is full.E_INVALID if name is empty.| 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(in), | optional | :: | value |
Header value. |
Adds header to request.
The function returns the following error codes:
E_BOUNDS if headers array is full.E_CORRUPT if headers array is not allocated.E_INVALID if name is empty.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(rpc_request_type), | intent(inout) | :: | request |
Request type. |
||
| character(len=*), | intent(in) | :: | name |
Header name. |
||
| character(len=*), | intent(in), | optional | :: | value |
Header value. |
Adds header to response.
The function returns the following error codes:
E_BOUNDS if headers array is full.E_CORRUPT if headers array is not allocated.E_INVALID if name is empty.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(rpc_response_type), | intent(inout) | :: | response |
Response type. |
||
| character(len=*), | intent(in) | :: | name |
Header name. |
||
| character(len=*), | intent(in), | optional | :: | value |
Header value. |