Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Follow the latest changes up to 2014-03-23 #70

Merged
merged 1 commit into from
Mar 30, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/examples/server/apache_fake/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
extern crate time;
extern crate http;

use std::vec::Vec;

use std::io::net::ip::{SocketAddr, Ipv4Addr};
use std::io::Writer;

Expand Down
4 changes: 1 addition & 3 deletions src/examples/server/request_uri/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
extern crate time;
extern crate http;

use std::vec::Vec;

use std::io::net::ip::{SocketAddr, Ipv4Addr};
use std::io::Writer;

Expand Down Expand Up @@ -75,7 +73,7 @@ impl Server for RequestUriServer {
},
AbsoluteUri(ref url) => {
println!("absoluteURI, {}", url.to_str());
//path =
//path =
},
AbsolutePath(ref url) => {
println!("absolute path, {}", url.to_owned());
Expand Down
1 change: 0 additions & 1 deletion src/http/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use std::io::{IoResult, Stream};
use std::cmp::min;
use std::vec::Vec;
use std::slice;
use std::num::ToStrRadix;

Expand Down
1 change: 0 additions & 1 deletion src/http/headers/accept_ranges.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! The Accept-Ranges request header, defined in RFC 2616, Section 14.5.

use std::vec::Vec;
use std::io::IoResult;
use std::ascii::StrAsciiExt;

Expand Down
1 change: 0 additions & 1 deletion src/http/headers/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ impl super::HeaderConvertible for Connection {

#[test]
fn test_connection() {
use std::vec::Vec;
use headers::test_utils::{assert_conversion_correct,
assert_interpretation_correct,
assert_invalid};
Expand Down
1 change: 0 additions & 1 deletion src/http/headers/content_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! The Content-Type entity header, defined in RFC 2616, Section 14.17.
use headers::serialization_utils::{push_parameters, WriterUtil};
use std::vec::Vec;
use std::io::IoResult;
use std::fmt;

Expand Down
2 changes: 0 additions & 2 deletions src/http/headers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
//! unknown headers are stored in a map in the traditional way.

use url::Url;
use std::vec::Vec;
use std::io::IoResult;
use time::{Tm, strptime};
use rfc2616::{is_token_item, is_separator, CR, LF, SP, HT, COLON};
Expand Down Expand Up @@ -872,7 +871,6 @@ macro_rules! headers_mod {
#[$attr]

#[allow(unused_imports)]
use std::vec::Vec;
use std::io::IoResult;
use time;
use collections::treemap::{TreeMap, Entries};
Expand Down
1 change: 0 additions & 1 deletion src/http/headers/serialization_utils.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! Utility functions for assisting with conversion of headers from and to the HTTP text form.

use std::vec::Vec;
use std::slice;
use std::ascii::Ascii;
use std::io::IoResult;
Expand Down
1 change: 0 additions & 1 deletion src/http/headers/transfer_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//!
//! Transfer-Encoding = "Transfer-Encoding" ":" 1#transfer-coding

use std::vec::Vec;
use std::ascii::StrAsciiExt;
use std::io::IoResult;
use headers::serialization_utils::{WriterUtil, push_parameters};
Expand Down