Struct roadrunner::RestClient
[−]
[src]
pub struct RestClient { /* fields omitted */ }
RestClient is used to configure request.
Together with the trait RestClientMethods
, it provides a high level API
interface that is somewhat similar to unirest java library.
Methods
impl RestClient
[src]
fn get(url: &str) -> Result<Self, Error>
Initialize a RestClient for a GET request.
fn delete(url: &str) -> Result<Self, Error>
Initialize a RestClient for a DELETE request.
fn post(url: &str) -> Result<Self, Error>
Initialize a RestClient for a POST request.
fn put(url: &str) -> Result<Self, Error>
Initialize a RestClient for a PUT request.
fn patch(url: &str) -> Result<Self, Error>
Initialize a RestClient for a PATCH request.
fn options(url: &str) -> Result<Self, Error>
Initialize a RestClient for a OPTIONS request.