move connect calls to stream

This commit is contained in:
Martin Algesten
2018-06-14 14:38:00 +02:00
parent ef6f8c6259
commit 7177a99d1f
5 changed files with 85 additions and 86 deletions

View File

@@ -1,17 +1,17 @@
use agent::Request;
use agent::Stream;
use error::Error;
use header::Header;
use std::collections::HashMap;
use std::io::Write;
use std::sync::{Arc, Mutex};
use stream::Stream;
use url::Url;
use util::vecread::VecRead;
mod agent_test;
mod auth;
mod simple;
mod body_read;
mod simple;
type RequestHandler = Fn(&Request, &Url) -> Result<Stream, Error> + Send + 'static;