File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ use header::parsing::{from_comma_delimited, fmt_comma_delimited};
5
5
6
6
/// `Prefer` header, defined in [RFC7240](http://tools.ietf.org/html/rfc7240)
7
7
///
8
- /// The `Prefer` header field is HTTP header field that can be used by a
9
- /// client to request that certain behaviors be employed by a server
10
- /// while processing a request.
8
+ /// The `Prefer` header field can be used by a client to request that certain
9
+ /// behaviors be employed by a server while processing a request.
11
10
///
12
11
/// # ABNF
13
12
/// ```plain
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ impl Method {
73
73
}
74
74
75
75
/// Whether a method is considered "idempotent", meaning the request has
76
- /// the same result is executed multiple times.
76
+ /// the same result if executed multiple times.
77
77
///
78
78
/// See [the spec](https://tools.ietf.org/html/rfc7231#section-4.2.2) for
79
79
/// more words.
Original file line number Diff line number Diff line change @@ -179,15 +179,15 @@ pub trait Ssl {
179
179
fn wrap_server ( & self , stream : HttpStream ) -> :: Result < Self :: Stream > ;
180
180
}
181
181
182
- /// An abstraction to allow any SSL implementation to be used with client-side HttpsStreams .
182
+ /// An abstraction to allow any SSL implementation to be used with client-side `HttpsStream`s .
183
183
pub trait SslClient {
184
184
/// The protected stream.
185
185
type Stream : Transport ;
186
186
/// Wrap a client stream with SSL.
187
187
fn wrap_client ( & self , stream : HttpStream , host : & str ) -> :: Result < Self :: Stream > ;
188
188
}
189
189
190
- /// An abstraction to allow any SSL implementation to be used with server-side HttpsStreams .
190
+ /// An abstraction to allow any SSL implementation to be used with server-side `HttpsStream`s .
191
191
pub trait SslServer {
192
192
/// The protected stream.
193
193
type Stream : Transport ;
@@ -323,7 +323,7 @@ impl<S: Transport> Transport for HttpsStream<S> {
323
323
}
324
324
}
325
325
326
- /// A Http Listener over SSL.
326
+ /// An `HttpListener` over SSL.
327
327
#[ derive( Debug ) ]
328
328
pub struct HttpsListener < S : SslServer > {
329
329
listener : TcpListener ,
@@ -340,7 +340,7 @@ impl<S: SslServer> HttpsListener<S> {
340
340
} )
341
341
}
342
342
343
- /// Construct an HttpsListener from a bound `TcpListener`.
343
+ /// Construct an ` HttpsListener` from a bound `TcpListener`.
344
344
pub fn with_listener ( listener : TcpListener , ssl : S ) -> HttpsListener < S > {
345
345
HttpsListener {
346
346
listener : listener,
Original file line number Diff line number Diff line change 1
1
//! HTTP Server
2
2
//!
3
- //! A `Server` is created to listen on port, parse HTTP requests, and hand
3
+ //! A `Server` is created to listen on a port, parse HTTP requests, and hand
4
4
//! them off to a `Handler`.
5
5
use std:: fmt;
6
6
use std:: net:: SocketAddr ;
You can’t perform that action at this time.
0 commit comments