Re-exports§
pub use crate::auth::BasicAuthMiddleware;
pub use crate::auth::BasicAuthURIMiddleware;
pub use crate::auth::AIGC_BASIC_REALM;
pub use crate::auth::AIGC_FOREIGN_BASIC_REALM;
pub use crate::types::*;
Modules§
Macros§
Structs§
- ApiServer
- HTTP server allowing the registration of ApiEndpoint implementations.
- Error
- Errors that can be returned by an ApiEndpoint implementation.
- Foreign
- Main interface into all node API functions. Node APIs are split into two seperate blocks of functionality called the ‘Owner’ and ‘Foreign’ APIs
- Logging
Middleware - Node
- Owner
- Main interface into all node API functions. Node APIs are split into two seperate blocks of functionality called the ‘Owner’ and ‘Foreign’ APIs
- Query
Params - Router
- TLSConfig
- TLS config
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