Struct yup_hyper_mock::HostToReplyConnector [] [src]

pub struct HostToReplyConnector {
    pub m: HashMap<StringString>,
}

A NetworkConnector which provides a single reply stream per host.

The mapping is done from full host url (e.g. http://host.name.com) to the singular reply the host is supposed to make.

Fields

m: HashMap<StringString>

Trait Implementations

impl Default for HostToReplyConnector
[src]

fn default() -> HostToReplyConnector

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

impl NetworkConnector for HostToReplyConnector
[src]

type Stream = MockStream

Type of Stream to create

fn connect(&self, host: &str, port: u16, scheme: &str) -> Result<MockStream>

Connect to a remote address.