RESTinio
Loading...
Searching...
No Matches
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.

Detailed Description

A handy wrapper for HTTP response status code.

Definition at line 1994 of file http_headers.hpp.

Constructor & Destructor Documentation

◆ http_status_code_t() [1/2]

restinio::http_status_code_t::http_status_code_t ( )
inlineconstexprnoexcept

Definition at line 1997 of file http_headers.hpp.

◆ http_status_code_t() [2/2]

restinio::http_status_code_t::http_status_code_t ( std::uint16_t status_code)
inlineexplicitconstexprnoexcept

Definition at line 2000 of file http_headers.hpp.

Member Function Documentation

◆ operator!=()

bool restinio::http_status_code_t::operator!= ( const http_status_code_t & sc) const
inlineconstexprnoexcept

Definition at line 2017 of file http_headers.hpp.

◆ operator<()

bool restinio::http_status_code_t::operator< ( const http_status_code_t & sc) const
inlineconstexprnoexcept

Definition at line 2022 of file http_headers.hpp.

◆ operator==()

bool restinio::http_status_code_t::operator== ( const http_status_code_t & sc) const
inlineconstexprnoexcept

Definition at line 2011 of file http_headers.hpp.

◆ raw_code()

auto restinio::http_status_code_t::raw_code ( ) const
inlineconstexprnoexcept

Definition at line 2005 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 2030 of file http_headers.hpp.


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