/// @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.
/// 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
///
/// 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
/// @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.
/// @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.
/// @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.