Struct algorithmia::client::HttpClient
[−]
[src]
pub struct HttpClient { pub base_url: String, // some fields omitted }
Internal HttpClient to build requests: wraps hyper
client
Fields
base_url: String
Methods
impl HttpClient
[src]
fn new(api_auth: ApiAuth, base_url: String) -> HttpClient
Instantiate an HttpClient - creates a new hyper
client
fn get(&self, url: Url) -> RequestBuilder
Helper to make Algorithmia GET requests with the API key
fn head(&self, url: Url) -> RequestBuilder
Helper to make Algorithmia GET requests with the API key
fn post(&self, url: Url) -> RequestBuilder
Helper to make Algorithmia POST requests with the API key
fn put(&self, url: Url) -> RequestBuilder
Helper to make Algorithmia PUT requests with the API key
fn delete(&self, url: Url) -> RequestBuilder
Helper to make Algorithmia POST requests with the API key
Trait Implementations
impl Clone for HttpClient
[src]
Allow cloning in order to reuse http client (and API key) for multiple connections
fn clone(&self) -> HttpClient
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more