Struct httper::client::HttperClient [−][src]
pub struct HttperClient { /* fields omitted */ }
Methods
impl HttperClient
[src]
impl HttperClient
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates a new HttperClient
.
Examples
use httper::client::HttperClient; let httper_client = HttperClient::new();
pub fn get(&self, url: &str) -> Get
[src]
pub fn get(&self, url: &str) -> Get
Prepares a GET
request to a given url &str
.
Call .send()
to send the request.
Examples
use httper::client::HttperClient; let httper_client = HttperClient::new(); httper_client.get("https://testing.local").send();
pub fn post(&self, url: &str) -> PayloadBuilder
[src]
pub fn post(&self, url: &str) -> PayloadBuilder
Prepares a POST
request to a given url &str
.
Call .send()
to send the request.
Examples
use httper::client::HttperClient; let httper_client = HttperClient::new(); httper_client.post("http://localhost:9090").payload("payload").send();
pub fn delete(&self, url: &str) -> PayloadBuilder
[src]
pub fn delete(&self, url: &str) -> PayloadBuilder
Prepares a DELETE
request to a given url &str
.
Call .send()
to send the request.
Examples
use httper::client::HttperClient; let httper_client = HttperClient::new(); httper_client.delete("http://localhost:9090").send();
pub fn put(&self, url: &str) -> PayloadBuilder
[src]
pub fn put(&self, url: &str) -> PayloadBuilder
Prepares a PUT
request to a given url &str
.
Call .send()
to send the request.
Examples
use httper::client::HttperClient; let httper_client = HttperClient::new(); httper_client.put("http://localhost:9090").payload("payload").send();
pub fn patch(&self, url: &str) -> PayloadBuilder
[src]
pub fn patch(&self, url: &str) -> PayloadBuilder
Prepares a PATCH
request to a given url &str
.
Call .send()
to send the request.
Examples
use httper::client::HttperClient; let httper_client = HttperClient::new(); httper_client.patch("http://localhost:9090").payload("payload").send();
Trait Implementations
impl Default for HttperClient
[src]
impl Default for HttperClient
impl Debug for HttperClient
[src]
impl Debug for HttperClient
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for HttperClient
[src]
impl Clone for HttperClient
fn clone(&self) -> HttperClient
[src]
fn clone(&self) -> HttperClient
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for HttperClient
impl Send for HttperClient
impl Sync for HttperClient
impl Sync for HttperClient