pub async fn handle_didcomm(
content_type: Option<String>,
body: Bytes,
node: Arc<TapNode>,
event_bus: Arc<EventBus>,
) -> Result<impl Reply, Infallible>Expand description
Handler for DIDComm messages.
This function processes incoming DIDComm messages by:
- Validating the Content-Type header
- Converting the raw bytes to a UTF-8 string
- Parsing the string as a DIDComm message
- Forwarding the message to the TAP Node for further processing
The handler returns appropriate success or error responses based on the outcome.