Browse Source

[5077] spelling & co (i.e., only cosmetics)

Francis Dupont 8 years ago
parent
commit
030ec48eea

+ 1 - 1
src/lib/http/http_messages.mes

@@ -6,5 +6,5 @@
 
 $NAMESPACE isc::http
 
-% HTTP_DUMMY a dummy message for libkea-htto
+% HTTP_DUMMY a dummy message for libkea-http
 This is a dummy message.

+ 1 - 1
src/lib/http/request.h

@@ -248,7 +248,7 @@ protected:
     /// @brief Map holding required HTTP headers.
     ///
     /// The key of this map specifies the HTTP header name. The value
-    /// spefifies the HTTP header value. If the value is empty, the
+    /// specifies the HTTP header value. If the value is empty, the
     /// header is required but the value of the header is not checked.
     /// If the value is non-empty, the value in the HTTP request must
     /// be equal to the value in the map.

+ 6 - 6
src/lib/http/request_parser.h

@@ -40,7 +40,7 @@ public:
 /// HTTP uses TCP as a transport which is asynchronous in nature, i.e. the
 /// HTTP message is received in chunks and multiple TCP connections can be
 /// established at the same time. Multiplexing between these connections
-/// requires providing a separate state machine per connection to "remeber"
+/// requires providing a separate state machine per connection to "remember"
 /// the state of each transaction when the parser is waiting for asynchronous
 /// data to be delivered. While the parser is waiting for the data, it can
 /// parse requests received over other connections. This class provides means
@@ -49,7 +49,7 @@ public:
 ///
 /// The request parser validates the syntax of the received message as it
 /// progresses with parsing the data. Though, it doesn't interpret the received
-/// data until it parses the whole message. In most cases we want to apply some
+/// data until the whole message is parsed. In most cases we want to apply some
 /// restrictions on the message content, e.g. Kea Control API requires that
 /// commands are sent using HTTP POST, with a JSON command being carried in a
 /// message body. The parser doesn't verify if the message meets these
@@ -173,7 +173,7 @@ public:
     /// @brief New data provided and parsing should continue.
     static const int MORE_DATA_PROVIDED_EVT = SM_DERIVED_EVENT_MIN + 3;
 
-    /// @brief Parsing HTTP request sucessfull.
+    /// @brief Parsing HTTP request successful.
     static const int HTTP_PARSE_OK_EVT = SM_DERIVED_EVENT_MIN + 100;
 
     /// @brief Parsing HTTP request failed.
@@ -192,9 +192,9 @@ public:
 
     /// @brief Initialize the state model for parsing.
     ///
-    /// This method must be  called before parsing the request, i.e. before
+    /// This method must be called before parsing the request, i.e. before
     /// calling @ref HttpRequestParser::poll. It initializes dictionaries of
-    /// states and events and sets the initial model state to RECEIVE_START_ST.
+    /// states and events, and sets the initial model state to RECEIVE_START_ST.
     void initModel();
 
     /// @brief Run the parser as long as the amount of data is sufficient.
@@ -412,7 +412,7 @@ private:
     /// @param [out] next A reference to the variable where read data should be
     /// stored.
     ///
-    /// @return true if character was sucessfully read, false otherwise.
+    /// @return true if character was successfully read, false otherwise.
     bool popNextFromBuffer(char& next);
 
     /// @brief Checks if specified value is a character.

+ 1 - 1
src/lib/http/tests/post_request_unittests.cc

@@ -15,7 +15,7 @@ using namespace isc::http::test;
 
 namespace {
 
-/// @brief Test fixutre class for @ref PostHttpRequest.
+/// @brief Test fixture class for @ref PostHttpRequest.
 typedef HttpRequestTestBase<PostHttpRequest> PostHttpRequestTest;
 
 // This test verifies that PostHttpRequest class only accepts POST