Skip to contents

Provides a pure-R, test-friendly REST dispatcher enforcing JWT authentication and RBAC permissions before delegating to server subsystems.

Usage

server_handle_request(
  ctx,
  method = "GET",
  path = "/health",
  headers = list(),
  body = list()
)

Arguments

ctx

A "dicom_server_context" from server_create_context().

method

HTTP method ("GET" or "POST").

path

Request path (e.g. "/health", "/projects", "/qa", "/audit/verify").

headers

Named list of HTTP headers (including Authorization).

body

Named list representing parsed JSON request body.

Value

A list with status (integer HTTP code) and body (response list).