[−][src]Trait interface_tests_helpers::ClientHandler
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
Implementations on Foreign Types
impl ClientHandler for Client
[src]
fn get_url(&self, url: &str) -> Response
[src]
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