Rename rfc7230 to http to more clearly indicate its purpose.
This commit is contained in:
@@ -7,7 +7,7 @@ use method;
|
|||||||
use header::Headers;
|
use header::Headers;
|
||||||
use header::common::Host;
|
use header::common::Host;
|
||||||
use net::{NetworkStream, HttpStream};
|
use net::{NetworkStream, HttpStream};
|
||||||
use rfc7230::LINE_ENDING;
|
use http::LINE_ENDING;
|
||||||
use version;
|
use version;
|
||||||
use {HttpResult, HttpUriError};
|
use {HttpResult, HttpUriError};
|
||||||
use super::{Response};
|
use super::{Response};
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use header;
|
|||||||
use header::common::{ContentLength, TransferEncoding};
|
use header::common::{ContentLength, TransferEncoding};
|
||||||
use header::common::transfer_encoding::Chunked;
|
use header::common::transfer_encoding::Chunked;
|
||||||
use net::{NetworkStream, HttpStream};
|
use net::{NetworkStream, HttpStream};
|
||||||
use rfc7230::{read_status_line, HttpReader, SizedReader, ChunkedReader, EofReader};
|
use http::{read_status_line, HttpReader, SizedReader, ChunkedReader, EofReader};
|
||||||
use status;
|
use status;
|
||||||
use version;
|
use version;
|
||||||
use {HttpResult};
|
use {HttpResult};
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ use std::collections::hashmap::{HashMap, Entries};
|
|||||||
|
|
||||||
use uany::UncheckedAnyDowncast;
|
use uany::UncheckedAnyDowncast;
|
||||||
|
|
||||||
use rfc7230::read_header;
|
use http::read_header;
|
||||||
use {HttpResult};
|
use {HttpResult};
|
||||||
|
|
||||||
/// Common Headers
|
/// Common Headers
|
||||||
|
|||||||
@@ -429,7 +429,7 @@ pub type RawHeaderLine = (Vec<u8>, Vec<u8>);
|
|||||||
|
|
||||||
/// Read a RawHeaderLine from a Reader.
|
/// Read a RawHeaderLine from a Reader.
|
||||||
///
|
///
|
||||||
/// From [spec](https://tools.ietf.org/html/rfc7230#section-3.2):
|
/// From [spec](https://tools.ietf.org/html/http#section-3.2):
|
||||||
///
|
///
|
||||||
/// > Each header field consists of a case-insensitive field name followed
|
/// > Each header field consists of a case-insensitive field name followed
|
||||||
/// > by a colon (":"), optional leading whitespace, the field value, and
|
/// > by a colon (":"), optional leading whitespace, the field value, and
|
||||||
@@ -59,7 +59,7 @@ pub mod status;
|
|||||||
pub mod uri;
|
pub mod uri;
|
||||||
pub mod version;
|
pub mod version;
|
||||||
|
|
||||||
mod rfc7230;
|
mod http;
|
||||||
|
|
||||||
mod mimewrapper {
|
mod mimewrapper {
|
||||||
/// Re-exporting the mime crate, for convenience.
|
/// Re-exporting the mime crate, for convenience.
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ use version::{HttpVersion};
|
|||||||
use method;
|
use method;
|
||||||
use header::Headers;
|
use header::Headers;
|
||||||
use header::common::ContentLength;
|
use header::common::ContentLength;
|
||||||
use rfc7230::{read_request_line};
|
use http::{read_request_line};
|
||||||
use rfc7230::{HttpReader, SizedReader, ChunkedReader};
|
use http::{HttpReader, SizedReader, ChunkedReader};
|
||||||
use net::NetworkStream;
|
use net::NetworkStream;
|
||||||
use uri::RequestUri;
|
use uri::RequestUri;
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use time::now_utc;
|
|||||||
|
|
||||||
use header;
|
use header;
|
||||||
use header::common;
|
use header::common;
|
||||||
use rfc7230::{CR, LF, LINE_ENDING};
|
use http::{CR, LF, LINE_ENDING};
|
||||||
use status;
|
use status;
|
||||||
use net::NetworkStream;
|
use net::NetworkStream;
|
||||||
use version;
|
use version;
|
||||||
@@ -30,7 +30,7 @@ pub struct Response<W: WriteStatus> {
|
|||||||
/// The HTTP version of this response.
|
/// The HTTP version of this response.
|
||||||
pub version: version::HttpVersion,
|
pub version: version::HttpVersion,
|
||||||
// Stream the Response is writing to, not accessible through UnwrittenResponse
|
// Stream the Response is writing to, not accessible through UnwrittenResponse
|
||||||
body: BufferedWriter<Box<NetworkStream + Send>>, // TODO: use a HttpWriter from rfc7230
|
body: BufferedWriter<Box<NetworkStream + Send>>, // TODO: use a HttpWriter from http
|
||||||
// The status code for the request.
|
// The status code for the request.
|
||||||
status: status::StatusCode,
|
status: status::StatusCode,
|
||||||
// The outgoing headers on this response.
|
// The outgoing headers on this response.
|
||||||
|
|||||||
Reference in New Issue
Block a user