From 8994732227c59f549e1562eb17b1bb79abb71809 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 27 Feb 2018 23:30:26 -0800 Subject: [PATCH] doc strings --- CHANGES.md | 4 ++-- src/httpmessage.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 04e1aed85..f2deadfdb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,10 +1,10 @@ # Changes -## 0.4.0 (2018-02-..) +## 0.4.0 (2018-02-28) * Actix 0.5 compatibility -* Fix request json loader +* Fix request json/urlencoded loaders * Simplify HttpServer type definition diff --git a/src/httpmessage.rs b/src/httpmessage.rs index 14a551ead..2d8b1659d 100644 --- a/src/httpmessage.rs +++ b/src/httpmessage.rs @@ -17,9 +17,10 @@ use error::{ParseError, ContentTypeError, HttpRangeError, PayloadError, UrlencodedError}; +/// Trait that implements general purpose operations on http messages pub trait HttpMessage { - /// Read the Message Headers. + /// Read the message headers. fn headers(&self) -> &HeaderMap; /// Read the request content type. If request does not contain