Expand description
A json-rpc client for pegnetd
Re-exports§
pub extern crate tokio;
pub use constants::*;
pub use requests::*;
pub use responses::*;
pub use api::*;
Modules§
- api
- Holds the base client struct along with the api call functions
- constants
- Constants for use with the library
- header
- HTTP header types
- io
- Traits, helpers, and type definitions for asynchronous I/O functionality.
- multipart
- multipart/form-data
- redirect
- Redirect Handling
- requests
- General request handling and the ApiRequest struct
- responses
- Contains the generic api response struct along with specific structs for each indiviual endpoint
Structs§
- Body
- An asynchronous request body.
- Certificate
- Represents a server X509 certificate.
- Client
- An asynchronous
Client
to make Requests with. - Client
Builder - A
ClientBuilder
can be used to create aClient
with custom configuration. - Identity
- Represents a private key and X509 cert as a client certificate.
- Method
- The Request Method (VERB)
- Proxy
- Configuration of a proxy that a
Client
should pass requests to. - Request
- A request which can be executed with
Client::execute()
. - Request
Builder - A builder to construct the properties of a
Request
. - Response
- A Response to a submitted
Request
. - Runtime
- The Tokio runtime.
- Status
Code - An HTTP status code (
status-code
in RFC 7230 et al.). - Url
- A parsed URL record.
- Version
- Represents a version of the HTTP spec.
Traits§
- Async
BufRead - Reads bytes asynchronously.
- Async
Read - Reads bytes from a source.
- Async
Write - Writes bytes asynchronously.
- IntoUrl
- A trait to try to convert some type into a
Url
. - Response
Builder Ext - Extension trait for http::response::Builder objects
- _
- An extension trait which adds utility methods to
AsyncBufRead
types.
Functions§
- get
- Shortcut method to quickly make a
GET
request.
Type Aliases§
- Result
- A
Result
alias where theErr
case isreqwest::Error
.