dm_rpc_header_get Interface

public interface dm_rpc_header_get

Generic RPC header get function.


Module Procedures

private function rpc_header_get(headers, name, value) result(rc)

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.

Arguments

Type IntentOptional 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.

Return Value integer

private function rpc_header_get_request(request, name, value) result(rc)

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.

Arguments

Type IntentOptional 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.

Return Value integer

private function rpc_header_get_response(response, name, value) result(rc)

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.

Arguments

Type IntentOptional 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.

Return Value integer