[][src]Trait interface_tests_helpers::ClientHandler

pub trait ClientHandler {
    fn get_url(&self, url: &str) -> Response;
fn post_json(&self, url: &str, json: &HashMap<&str, &str>) -> Response;
fn post_body(&self, url: &str, body: &str) -> Response;
fn put_xml(&self, url: &str, body: &str) -> Response;
fn put_text(&self, url: &str, text: &str) -> Response; }

Required methods

fn get_url(&self, url: &str) -> Response

fn post_json(&self, url: &str, json: &HashMap<&str, &str>) -> Response

fn post_body(&self, url: &str, body: &str) -> Response

fn put_xml(&self, url: &str, body: &str) -> Response

fn put_text(&self, url: &str, text: &str) -> Response

Loading content...

Implementations on Foreign Types

impl ClientHandler for Client[src]

fn get_url(&self, url: &str) -> Response[src]

Perform a GET request without parameter

Args:

url - the suffix of the URL

fn post_json(&self, url: &str, json: &HashMap<&str, &str>) -> Response[src]

Perform a POST request to send JSON and stores its result

Args:

url - the suffix of the URL json - the json data to send

fn post_body(&self, url: &str, body: &str) -> Response[src]

Perform a POST request to send a raw body and stores its result

Args:

url - the suffix of the URL body - the body data to send (String format)

fn put_xml(&self, url: &str, body: &str) -> Response[src]

Perform a PUT request to send a XML body and returns its result

Args:

url - the suffix of the URL body - the body data to send (XML format)

fn put_text(&self, url: &str, text: &str) -> Response[src]

Perform a PUT request to send a text body and returns its result

Args:

url - the suffix of the URL text - the text to upload

Loading content...

Implementors

Loading content...