Skip to main content

Module middleware

Module middleware 

Source
Expand description

Tower middleware layers for the cognee HTTP server.

  • cors — CORS layer matching Python’s add_cors_middleware.
  • tracing — per-request access-log span layer.
  • validation — custom JSON extractor that emits ApiError::Validation.

Modules§

cors
CORS middleware.
tracing
Request tracing middleware.
validation
Custom JSON extractor that emits ApiError::Validation on deserialization failure instead of axum’s default 422/400.