Expand description
Internal core for the Tako framework.
This crate hosts the framework primitives shared across all Tako sub-crates:
routing, request/response types, body, middleware/plugin traits, extractor
traits, state, signals, queue, and a few cross-cutting features such as
graphql, grpc, and openapi that interact tightly with the router.
Concrete extractors live in tako-extractors, server bootstrap code in
tako-server, streaming/upgrade transports in tako-streams, and concrete
middleware/plugin implementations in tako-plugins. Users should depend on
the tako-rs umbrella crate, which re-exports everything under the original
tako::* paths.
Re-exports§
pub use responder::NOT_FOUND;
Modules§
- body
- HTTP request and response body handling utilities. HTTP request and response body handling utilities for efficient data processing.
- config
- Configuration loading from environment variables. Configuration loading from environment variables.
- conn_
info - Unified per-connection metadata extension shared by every transport. Unified connection-info extension shared by every Tako transport.
- extractors
- Request data extraction trait + the two extractors (
json,params) whose internal types are referenced by the router and route. HTTP request data extraction utilities and traits. - graphiql
graphiql GraphiQLUI helpers.GraphiQLHTML responder and helper for Tako.- graphql
async-graphql GraphQLsupport (request extractors, responses, and subscriptions). Async-GraphQLintegration for Tako: extractors, responses, and subscriptions.- grpc
grpc - gRPC support for unary RPCs with protobuf serialization. gRPC support for unary RPCs over HTTP/2.
- handler
- Request handler traits and implementations. Request handler traits and implementations for type-safe HTTP processing.
- header
- HTTP header types
- middleware
- Middleware trait +
Nextexecution chain. Middleware system for request and response processing pipelines. - openapi
utoipaorvespera OpenAPIdocumentation generation integrations (utoipa, vespera).OpenAPIdocumentation generation integrations.- plugins
plugins - Plugin system trait (
TakoPlugin). Plugin system for extending framework functionality with composable modules. - problem
- RFC 7807 / RFC 9457
application/problem+jsonerror responses. RFC 7807 / RFC 9457application/problem+jsonerror responses. - queue
- In-memory background job queue with retry, delayed jobs, and dead letter support. In-memory background job queue with named queues, retry policies, and dead letter support.
- redirect
- Redirection utilities for handling HTTP redirects. Redirect response utilities for handlers.
- responder
- Response generation utilities and traits. Response generation utilities and trait implementations for HTTP responses.
- route
- Route definition and matching logic. HTTP route definition and path matching functionality.
- router
- Request routing and dispatch functionality. HTTP request routing and dispatch functionality.
- router_
state - Per-router typed state container (instance-scoped, complements
state). Per-router typed state container. - signals
signals - In-process signal arbiter for custom events. In-process signal arbiter and dispatch system.
- state
- Application state management and dependency injection. Global application state management and dependency injection (type-based).
- tls
clientorhttp3ortls - Shared TLS certificate / key PEM loading helpers. Shared TLS PEM loading helpers used by every TLS-capable Tako transport.
- tracing
tako-tracing - Distributed tracing integration for observability. Distributed tracing integration for observability and debugging.
- types
- Core type definitions used throughout the framework. Core type definitions and aliases used throughout the Tako framework.
Structs§
- Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Full
- A body that consists of a single chunk.
- Method
- The Request Method (VERB)
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.).