Skip to content

Commit

Permalink
Split common headers into a submodule and into their own files
Browse files Browse the repository at this point in the history
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 hyperium#8
  • Loading branch information
reem committed Sep 8, 2014
1 parent fd6b014 commit f2c09c5
Show file tree
Hide file tree
Showing 17 changed files with 727 additions and 637 deletions.
2 changes: 1 addition & 1 deletion examples/server.rs
Expand Up @@ -8,7 +8,7 @@ use std::io::net::ip::Ipv4Addr;

use hyper::{Get, Post};
use hyper::server::{Server, Handler, Incoming};
use hyper::header::ContentLength;
use hyper::header::common::ContentLength;

struct Echo;

Expand Down
3 changes: 2 additions & 1 deletion src/client/request.rs
Expand Up @@ -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};
Expand Down
4 changes: 3 additions & 1 deletion src/client/response.rs
Expand Up @@ -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;
Expand Down

0 comments on commit f2c09c5

Please sign in to comment.