Skip to main content

Module http_server

Module http_server 

Source
Expand description

Axum-based HTTP server for the Mina node RPC API.

This module provides REST endpoints for node status, state inspection, snark pool management, and transaction handling.

Modulesยง

macros ๐Ÿ”’
Macros for HTTP handlers.
openapi ๐Ÿ”’
OpenAPI documentation configuration.
routes ๐Ÿ”’
Route handlers for the axum HTTP server.
types ๐Ÿ”’
Shared types for the axum HTTP server.

Structsยง

AppState
Application state shared across all axum handlers.
JsonErrorResponse
JSON error response body.

Enumsยง

AppError
HTTP API error type that converts to appropriate HTTP responses.

Functionsยง

openapi_spec
Returns the OpenAPI specification for the HTTP API.
run
Runs the HTTP server on the specified port.

Type Aliasesยง

AppResult
Result type alias for HTTP handlers.