Skip to main content

Module seed_http

Module seed_http 

Source
Expand description

HTTP transport and credential storage for the Cognitum Seed adapter.

The per-Seed bearer token lives in the operator secret store (SeedCredentials, persisted by super::seed_creds::FileCredentials); it is only ever placed in an Authorization header and never appears in errors, logs or chain payloads.

Structs§

HttpSeedTransport
reqwest-backed transport.

Enums§

Method
HTTP method subset the Seed API uses.

Constants§

MAX_RESPONSE_BYTES
Largest response body accepted from a Seed.

Traits§

SeedCredentials
Where per-Seed tokens live.
SeedTransport
Sends requests to one Seed.

Functions§

validate_base_url
Validate a Seed base URL: http(s)://host[:port], nothing else.
validate_path
Validate an API path: /api/v1/... with safe characters only.