Struct yup_hyper_mock::HostToReplyConnector [] [src]

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

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

Trait Implementations

impl Default for HostToReplyConnector
[src]

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

impl NetworkConnector for HostToReplyConnector
[src]

Type of Stream to create

Connect to a remote address.