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

Commit 71f2a2d

Browse files
committed
Remove or comment out unused statics.
--HG-- extra : rebase_source : afadb20cac073a3a0654a407e8a41bbe61db9818
1 parent 55b071b commit 71f2a2d

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/http/server/request.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,12 @@ use common::read_http_version;
1111

1212
use headers::{HeaderLineErr, EndOfFile, EndOfHeaders, MalformedHeaderSyntax, MalformedHeaderValue};
1313

14-
/// Line/header can't be more than 4KB long (note that with the compacting of LWS the actual source
15-
/// data could be longer than 4KB)
16-
static MAX_LINE_LEN: uint = 0x1000;
14+
// /// Line/header can't be more than 4KB long (note that with the compacting of LWS the actual source
15+
// /// data could be longer than 4KB)
16+
// static MAX_LINE_LEN: uint = 0x1000;
1717

1818
static MAX_REQUEST_URI_LEN: uint = 1024;
1919
pub static MAX_METHOD_LEN: uint = 64;
20-
static MAX_HTTP_VERSION_LEN: uint = 1024;
21-
22-
/// Moderately arbitrary figure: read in 64KB chunks. GET requests should never be this large.
23-
static BUF_SIZE: uint = 0x10000; // Let's try 64KB chunks
2420

2521
pub struct RequestBuffer<'a, S> {
2622
/// The socket connection to read from

src/http/server/response.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ use headers::response::HeaderCollection;
99
use headers::content_type::MediaType;
1010
use headers::transfer_encoding::Chunked;
1111

12-
/**
12+
/*
1313
* The HTTP version tag which will be used for the response.
1414
*
1515
* At present, responses will always respond with `HTTP/1.1`, as there doesn't
1616
* seem much value in responding HTTP/1.0 when we don't really support it.
1717
* Others do this too, so there's my justification.
1818
*/
19-
static RESPONSE_HTTP_VERSION: &'static str = "HTTP/1.1";
19+
//static RESPONSE_HTTP_VERSION: &'static str = "HTTP/1.1";
2020
// Maybe we could provide a response interface
2121

2222
pub struct ResponseWriter<'a> {

0 commit comments

Comments
 (0)