pub struct HttpEndpoint { /* private fields */ }
Available on crate features rest-client or rpc-client only.
Expand description

Endpoint for interacting with an HTTP-based API.

Implementations§

Creates an endpoint for the given host and default HTTP port.

Specifies a port to use with the endpoint.

Specifies a path to use with the endpoint.

Returns the endpoint host.

Returns the endpoint port.

Returns the endpoint path.

Trait Implementations§

Formats the value using the given formatter. Read more
Returned iterator over socket addresses which this type may correspond to. Read more
Converts this object to an iterator of resolved SocketAddrs. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.