Merge pull request #1354 from nabijaczleweli/master
docs(headers): fix >-quote formatting
This commit is contained in:
@@ -19,7 +19,7 @@ use header::{Header, Raw, parsing};
|
|||||||
/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2):
|
/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2):
|
||||||
///
|
///
|
||||||
/// > A sender MUST NOT send a Content-Length header field in any message
|
/// > A sender MUST NOT send a Content-Length header field in any message
|
||||||
/// that > contains a Transfer-Encoding header field.
|
/// > that contains a Transfer-Encoding header field.
|
||||||
///
|
///
|
||||||
/// # ABNF
|
/// # ABNF
|
||||||
/// ```plain
|
/// ```plain
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ use header::{Header, Raw, parsing};
|
|||||||
/// > that they will understand (as Cache-Control was not defined until
|
/// > that they will understand (as Cache-Control was not defined until
|
||||||
/// > HTTP/1.1). When the Cache-Control header field is also present and
|
/// > HTTP/1.1). When the Cache-Control header field is also present and
|
||||||
/// > understood in a request, Pragma is ignored.
|
/// > understood in a request, Pragma is ignored.
|
||||||
|
|
||||||
/// > In HTTP/1.0, Pragma was defined as an extensible field for
|
/// > In HTTP/1.0, Pragma was defined as an extensible field for
|
||||||
/// > implementation-specified directives for recipients. This
|
/// > implementation-specified directives for recipients. This
|
||||||
/// > specification deprecates such extensions to improve interoperability.
|
/// > specification deprecates such extensions to improve interoperability.
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ pub fn from_wire<B>(incoming: ResponseHead, body: Option<B>) -> Response<B> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Splits this response into a MessageHead<StatusCode> and its body
|
/// Splits this response into a `MessageHead<StatusCode>` and its body
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn split<B>(res: Response<B>) -> (MessageHead<StatusCode>, Option<B>) {
|
pub fn split<B>(res: Response<B>) -> (MessageHead<StatusCode>, Option<B>) {
|
||||||
let head = MessageHead::<StatusCode> {
|
let head = MessageHead::<StatusCode> {
|
||||||
|
|||||||
Reference in New Issue
Block a user