Re-exports§
pub use crate::auth::BasicAuthMiddleware;
pub use crate::auth::BasicAuthURIMiddleware;
pub use crate::auth::EPIC_BASIC_REALM;
pub use crate::auth::EPIC_FOREIGN_BASIC_REALM;
pub use crate::rest::*;
Modules§
- auth
- client
- High level JSON/HTTP client API
- rest
- RESTful API server to easily expose services as RESTful JSON/HTTP endpoints. Fairly constrained on what the service API must look like by design.
Macros§
Structs§
- Block
Header Info - Block
Header Printable - Block
Outputs - Block
Printable - Compact
Block Printable - Foreign
- Main interface into all node API functions. Node APIs are split into two seperate blocks of functionality called the ‘Owner’ and ‘Foreign’ APIs
- Located
TxKernel - Node
- Output
- Output
Listing - Output
Printable - Owner
- Main interface into all node API functions. Node APIs are split into two seperate blocks of functionality called the ‘Owner’ and ‘Foreign’ APIs
- Pool
Info - Printable
Commitment - Query
Params - Router
- Status
- Tip
- The state of the current fork tip
- TxHash
Set - TxHashSet
- TxHash
SetNode - Wrapper around a list of txhashset nodes, so it can be presented properly via json
- TxKernel
Printable - Version
- API Version Information
Enums§
Traits§
- Foreign
Rpc - Public definition used to generate Node jsonrpc api.
- Handler
- Owner
Rpc - Public definition used to generate Node jsonrpc api.
Functions§
- json_
response - Utility to serialize a struct into JSON and produce a sensible Response out of it.
- json_
response_ pretty - Pretty-printed version of json response as future
- just_
response - Text response as HTTP response
- node_
apis - Listener version, providing same API but listening for requests on a port and wrapping the calls
- not_
found - parse_
body - Parse request body
- response
- Text response as future
- result_
to_ response - Convert Result to ResponseFuture