RESTinio
Public Member Functions | Private Attributes | List of all members
restinio::http_status_code_t Class Reference

A handy wrapper for HTTP response status code. More...

#include <http_headers.hpp>

Public Member Functions

constexpr http_status_code_t () noexcept
 
constexpr http_status_code_t (std::uint16_t status_code) noexcept
 
constexpr auto raw_code () const noexcept
 
constexpr bool operator== (const http_status_code_t &sc) const noexcept
 
constexpr bool operator!= (const http_status_code_t &sc) const noexcept
 
constexpr bool operator< (const http_status_code_t &sc) const noexcept
 

Private Attributes

std::uint16_t m_status_code { 0 }
 Status code value. More...
 

Detailed Description

A handy wrapper for HTTP response status code.

Definition at line 1786 of file http_headers.hpp.

Constructor & Destructor Documentation

◆ http_status_code_t() [1/2]

constexpr restinio::http_status_code_t::http_status_code_t ( )
inlinenoexcept

Definition at line 1789 of file http_headers.hpp.

◆ http_status_code_t() [2/2]

constexpr restinio::http_status_code_t::http_status_code_t ( std::uint16_t  status_code)
inlineexplicitnoexcept

Definition at line 1792 of file http_headers.hpp.

Member Function Documentation

◆ operator!=()

constexpr bool restinio::http_status_code_t::operator!= ( const http_status_code_t sc) const
inlinenoexcept

Definition at line 1809 of file http_headers.hpp.

◆ operator<()

constexpr bool restinio::http_status_code_t::operator< ( const http_status_code_t sc) const
inlinenoexcept

Definition at line 1815 of file http_headers.hpp.

◆ operator==()

constexpr bool restinio::http_status_code_t::operator== ( const http_status_code_t sc) const
inlinenoexcept

Definition at line 1803 of file http_headers.hpp.

◆ raw_code()

constexpr auto restinio::http_status_code_t::raw_code ( ) const
inlinenoexcept

Definition at line 1797 of file http_headers.hpp.

Member Data Documentation

◆ m_status_code

std::uint16_t restinio::http_status_code_t::m_status_code { 0 }
private

Status code value.

Definition at line 1822 of file http_headers.hpp.


The documentation for this class was generated from the following file: