Skip to main content

Crate relay_core_http

Crate relay_core_http 

Source
Expand description

relay-core-http — REST + SSE HTTP API adapter

Exposes relay-core capabilities as a versioned REST API so any language or tool can integrate without a Rust dependency.

§API surface (v1)

MethodPathDescription
GET/api/v1/versionServer & API version
GET/api/v1/metricsRuntime metrics
GET/api/v1/metrics/prometheusPrometheus text metrics
GET/api/v1/statusRuntime lifecycle snapshot
GET/api/v1/flowsSearch flows (query params)
GET/api/v1/flows/{id}Get single flow
GET/api/v1/rulesList active rules
PUT/api/v1/rulesAdd/replace a rule (full Rule JSON)
DELETE/api/v1/rules/{id}Delete a rule
POST/api/v1/mockQuickly mock a URL pattern
POST/api/v1/interceptsSet a one-shot intercept breakpoint
GET/api/v1/interceptsList pending intercepts
POST/api/v1/intercepts/{key}/resumeResume an intercepted flow
GET/api/v1/eventsSSE stream of live flow events

Re-exports§

pub use server::HttpApiConfig;
pub use server::HttpApiServer;

Modules§

server