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ยง

auth
Authentication and identity extraction for HTTP and WebSocket connections.
execute
Query and command execution with interceptor support.
interceptor
Request-level interceptors for pre/post query execution hooks.
remote
Shared remote subscription support.
response
state
Application state shared across request handler.
subscribe
wire
Wire format types for the WebSocket and HTTP protocol layers.