Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/fs/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,4 @@ namespace fs {

} //< namespace fs

#endif //< FS_ERROR_HPP
#endif //< FS_COMMON_HPP
2 changes: 1 addition & 1 deletion api/net/http/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace http {
inline TCP_conn release();

/**
* @brief Wether the underlying TCP connection has been released or not
* @brief Whether the underlying TCP connection has been released or not
*
* @return true if the underlying TCP connection is released
*/
Expand Down
2 changes: 1 addition & 1 deletion api/net/http/message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Message {
*
* @param[in] len The length of the content
*
* @return Outcome of wether the field got updated or not
* @return Outcome of whether the field got updated or not
*/
inline bool set_content_length(size_t len);

Expand Down
4 changes: 2 additions & 2 deletions api/net/tcp/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ class Connection : public std::enable_shared_from_this<Connection> {
void writeq_reset();

/*
Mark wether the Connection is in TCP write queue or not.
Mark whether the Connection is in TCP write queue or not.
*/
void set_queued(bool queued)
{ queued_ = queued; }
Expand Down Expand Up @@ -888,7 +888,7 @@ class Connection : public std::enable_shared_from_this<Connection> {
void timewait_timeout()
{ signal_close(); }

/** Wether to use Delayed ACK or not */
/** Whether to use Delayed ACK or not */
bool use_dack() const;

/**
Expand Down
2 changes: 1 addition & 1 deletion api/net/tcp/rttm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct RTTM {
{}

/**
* @brief Returns wether the RTTM is currently "measuring" (time is set)
* @brief Returns whether the RTTM is currently "measuring" (time is set)
*
* @return True if the RTTM is active (measuring)
*/
Expand Down
6 changes: 3 additions & 3 deletions api/net/tcp/tcp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace net {
* map of listeners
*
* @param port listening port
* @return wether the listener had a port
* @return whether the listener had a port
*/
bool unbind(const tcp::port_t port);

Expand Down Expand Up @@ -188,10 +188,10 @@ namespace net {
{ return wscale_; }

/**
* @brief Returns wether this TCP is using window scaling.
* @brief Returns whether this TCP is using window scaling.
* A wscale factor of 0 means off.
*
* @return Wether wscale is being used
* @return Whether wscale is being used
*/
constexpr bool uses_wscale() const
{ return wscale_ > 0; }
Expand Down
2 changes: 1 addition & 1 deletion api/util/chunk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Chunk {
Chunk operator+(const Chunk& c);

/**
* @brief Check wether the chunk is valid/not empty
* @brief Check whether the chunk is valid/not empty
*/
operator bool() const noexcept
{ return static_cast<bool>(buffer_) and (length_ > 0); }
Expand Down
2 changes: 1 addition & 1 deletion api/util/timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Timer {
/**
* @brief If the timer is running (active)
*
* @return Wether the timer is running or not
* @return whether the timer is running or not
*/
bool is_running() const
{ return id_ != Timers::UNUSED_ID; }
Expand Down
2 changes: 1 addition & 1 deletion lib/mana/include/mana/middleware/butler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Butler : public Middleware {
* @details Very bad but easy way to assume the path is a request for a file.
*
* @param path
* @return wether a path is a file request or not
* @return whether a path is a file request or not
*/
inline bool is_file_request(const std::string& path) const
{ return !get_extension(path).empty(); }
Expand Down
4 changes: 2 additions & 2 deletions lib/mana/include/mana/response.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ class Response : public std::enable_shared_from_this<Response> {
* Mostly used for replying with an error.
*
* @param[in] <unnamed> { parameter_description }
* @param[in] close Wether to close the connection or not. Default = true
* @param[in] close Whether to close the connection or not. Default = true
*/
void send_code(const Code, bool close = true);

/**
* @brief Send the underlying Response as is.
*
* @param[in] force_close Wether to forcefully close the connection. Default = false
* @param[in] force_close whether to forcefully close the connection. Default = false
*/
void send(bool force_close = false);

Expand Down