Skip to main content

Crate reifydb_sub_server

Crate reifydb_sub_server 

Source
Expand description

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

Modulesยง

actor
Unified server actor for HTTP, gRPC, and WebSocket transports.
auth
Authentication and identity extraction for HTTP and WebSocket connections.
dispatch
Shared dispatch layer for all network transports.
execute
Error types for query and command execution.
interceptor
Request-level interceptors for pre/post query execution hooks.
response
state
Application state shared across request handler.
subscribe
wire
Wire format types for the WebSocket and HTTP protocol layers.