Split common headers into a submodule and into their own files
This is a more extensible place to put them and doesn't clutter up header/mod.rs as much as the old scheme did. Fixes #8
This commit is contained in:
@@ -5,7 +5,8 @@ use std::io::{BufferedWriter, IoResult};
|
||||
use url::Url;
|
||||
|
||||
use method;
|
||||
use header::{Headers, Host};
|
||||
use header::Headers;
|
||||
use header::common::Host;
|
||||
use rfc7230::LINE_ENDING;
|
||||
use version;
|
||||
use {HttpResult, HttpUriError};
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
use std::io::{BufferedReader, IoResult};
|
||||
use std::io::net::tcp::TcpStream;
|
||||
|
||||
use header::{mod, ContentLength, TransferEncoding, Chunked};
|
||||
use header;
|
||||
use header::common::{ContentLength, TransferEncoding};
|
||||
use header::common::transfer_encoding::Chunked;
|
||||
use rfc7230::{read_status_line, HttpReader, SizedReader, ChunkedReader, EofReader};
|
||||
use status;
|
||||
use version;
|
||||
|
||||
Reference in New Issue
Block a user