Struct noir::HttpBody
[−]
[src]
pub struct HttpBody { // some fields omitted }
An abstraction over different data types used for HTTP request bodies.
Trait Implementations
impl From<Vec<u8>> for HttpBody
[src]
fn from(vec: Vec<u8>) -> HttpBody
Creates a HTTP body from a byte vector.
Test Failure Examples
From test_body_expected_raw_mismatch
(Collapse)
impl From<&'static str> for HttpBody
[src]
fn from(string: &'static str) -> HttpBody
Creates a HTTP body from a string slice.
Test Failure Examples
From test_body_text_mismatch_diff_added
(Collapse)
impl From<String> for HttpBody
[src]
fn from(string: String) -> HttpBody
Creates a HTTP body from a String
.
Test Failure Examples
From test_body_text_mismatch_diff_removed
(Collapse)
impl From<JsonValue> for HttpBody
[src]
fn from(json: JsonValue) -> HttpBody
Creates a HTTP body from a JSON value.
Test Failure Examples
From test_body_with_expected_json_mismatch
(Collapse)
impl From<HttpFormData> for HttpBody
[src]
fn from(form: HttpFormData) -> HttpBody
Creates a HTTP body from form data.
Test Failure Examples
From test_provided_response_with_expected_body_form_mismatch
(Collapse)