docs(headers): Update documentation of all remaining headers that use macros

This commit is contained in:
Pyfisch
2015-04-28 20:31:30 +02:00
parent 5a8cd31025
commit 14f46035b7
17 changed files with 98 additions and 85 deletions

View File

@@ -25,6 +25,9 @@ header! {
#[doc="protocol-name = token"]
#[doc="protocol-version = token"]
#[doc="```"]
#[doc=""]
#[doc="# Example values"]
#[doc="* `HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11`"]
(Upgrade, "Upgrade") => (Protocol)+
test_upgrade {
@@ -41,6 +44,7 @@ header! {
}
/// Protocol values that can appear in the Upgrade header.
// TODO: Parse version part seperately
#[derive(Clone, PartialEq, Debug)]
pub enum Protocol {
/// The websocket protocol.