From: Francis Dupont Date: Thu, 15 Dec 2016 23:11:02 +0000 (+0100) Subject: [5077] spelling & co (i.e., only cosmetics) X-Git-Tag: trac5088_base~5^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=030ec48eea8271d6a1bf3c92e03751c54092657f;p=thirdparty%2Fkea.git [5077] spelling & co (i.e., only cosmetics) --- diff --git a/src/lib/http/http_messages.mes b/src/lib/http/http_messages.mes index 6465f8b29e..469c6acab1 100644 --- a/src/lib/http/http_messages.mes +++ b/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. diff --git a/src/lib/http/request.h b/src/lib/http/request.h index 802d02bc32..a535f45410 100644 --- a/src/lib/http/request.h +++ b/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. diff --git a/src/lib/http/request_parser.h b/src/lib/http/request_parser.h index a1b9fcd5e9..c9368fd726 100644 --- a/src/lib/http/request_parser.h +++ b/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. diff --git a/src/lib/http/tests/post_request_unittests.cc b/src/lib/http/tests/post_request_unittests.cc index c5f6427bc5..a72d7a3764 100644 --- a/src/lib/http/tests/post_request_unittests.cc +++ b/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 PostHttpRequestTest; // This test verifies that PostHttpRequest class only accepts POST