[−][src]Crate grin_api
Re-exports
pub use crate::auth::BasicAuthMiddleware; |
Modules
| auth | |
| client | High level JSON/HTTP client API |
Structs
| ApiServer | HTTP server allowing the registration of ApiEndpoint implementations. |
| BlockHeaderInfo | |
| BlockHeaderPrintable | |
| BlockOutputs | |
| BlockPrintable | |
| CompactBlockPrintable | |
| Error | Errors that can be returned by an ApiEndpoint implementation. |
| LoggingMiddleware | |
| Node | |
| Output | |
| OutputListing | |
| OutputPrintable | |
| PoolInfo | |
| PrintableCommitment | |
| Router | |
| Status | Status page containing different server information |
| TLSConfig | TLS config |
| Tip | The state of the current fork tip |
| TxHashSet | TxHashSet |
| TxHashSetNode | Wrapper around a list of txhashset nodes, so it can be presented properly via json |
| TxKernelPrintable |
Enums
| ErrorKind | |
| OutputType | |
| RouterError |
Traits
| Handler |
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 |
| not_found | |
| parse_body | Parse request body |
| response | Text response as future |
| result_to_response | Convert Result to ResponseFuture |
| start_rest_apis | Start all server HTTP handlers. Register all of them with Router and runs the corresponding HTTP server. |
Type Definitions
| HandlerObj | |
| ResponseFuture |