Struct simplist::HttpContent [] [src]

pub struct HttpContent { /* fields omitted */ }

the optional body of a http request.

instances of this object are generally instantiated using one of the provided From or Into conversions.

conversions

HttpContents can be created from any of the following types, or from an Option of any of the following types:

byte types

string types

types from other crates

Methods

impl HttpContent
[src]

[src]

creates a content object that is empty and has no value.

examples

use simplist::HttpContent;

let content = HttpContent::none();

Trait Implementations

impl Debug for HttpContent
[src]

[src]

Formats the value using the given formatter.

impl Default for HttpContent
[src]

[src]

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

impl Into<Body> for HttpContent
[src]

[src]

Performs the conversion.

impl From<Bytes> for HttpContent
[src]

[src]

Performs the conversion.

impl From<Vec<u8>> for HttpContent
[src]

[src]

Performs the conversion.

impl From<&'static [u8]> for HttpContent
[src]

[src]

Performs the conversion.

impl From<String> for HttpContent
[src]

[src]

Performs the conversion.

impl From<&'static str> for HttpContent
[src]

[src]

Performs the conversion.

impl From<Option<Body>> for HttpContent
[src]

[src]

Performs the conversion.

impl<T> From<Option<T>> for HttpContent where
    T: Into<HttpContent>, 
[src]

[src]

Performs the conversion.