Struct httper::client::HttperClient[][src]

pub struct HttperClient { /* fields omitted */ }

Methods

impl HttperClient
[src]

Creates a new HttperClient.

Examples

use httper::client::HttperClient;

let httper_client = HttperClient::new();

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();

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();

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();

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();

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]

Returns the "default value" for a type. Read more

impl Debug for HttperClient
[src]

Formats the value using the given formatter. Read more

impl Clone for HttperClient
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations