// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 ReifyDB
//! Common infrastructure for HTTP and WebSocket server subsystems.
//!
//! This crate provides shared types and utilities used by `sub-server-http` and
//! `sub-server-ws`. It includes:
//!
//! - **Authentication**: Identity extraction from headers and tokens
//! - **Execution**: Async wrappers around synchronous database operations
//! - **Response**: Frame conversion for JSON serialization
//! - **Runtime**: Shared tokio runtime management
//! - **State**: Application state for request handler