Instrument Control Lib
Framework to control Oscilloscopes, SMUs, Function Generators and DC Powersupplies via Ethernet.
http::detail Namespace Reference

Classes

class  Socket
 

Functions

int getLastError () noexcept
 
constexpr int getAddressFamily (const InternetProtocol internetProtocol)
 
template<typename C >
constexpr bool isWhiteSpaceChar (const C c) noexcept
 
template<typename C >
constexpr bool isDigitChar (const C c) noexcept
 
template<typename C >
constexpr bool isAlphaChar (const C c) noexcept
 
template<typename C >
constexpr bool isTokenChar (const C c) noexcept
 
template<typename C >
constexpr bool isVisibleChar (const C c) noexcept
 
template<typename C >
constexpr bool isObsoleteTextChar (const C c) noexcept
 
template<class Iterator >
Iterator skipWhiteSpaces (const Iterator begin, const Iterator end)
 
template<typename T , typename C , typename std::enable_if< std::is_unsigned< T >::value >::type * = nullptr>
constexpr T digitToUint (const C c)
 
template<typename T , typename C , typename std::enable_if< std::is_unsigned< T >::value >::type * = nullptr>
constexpr T hexDigitToUint (const C c)
 
template<class Iterator >
Uri parseUri (const Iterator begin, const Iterator end)
 
template<class Iterator >
std::pair< Iterator, HttpVersionparseHttpVersion (const Iterator begin, const Iterator end)
 
template<class Iterator >
std::pair< Iterator, std::uint16_t > parseStatusCode (const Iterator begin, const Iterator end)
 
template<class Iterator >
std::pair< Iterator, std::string > parseReasonPhrase (const Iterator begin, const Iterator end)
 
template<class Iterator >
std::pair< Iterator, std::string > parseToken (const Iterator begin, const Iterator end)
 
template<class Iterator >
std::pair< Iterator, std::string > parseFieldValue (const Iterator begin, const Iterator end)
 
template<class Iterator >
std::pair< Iterator, std::string > parseFieldContent (const Iterator begin, const Iterator end)
 
template<class Iterator >
std::pair< Iterator, HeaderFieldparseHeaderField (const Iterator begin, const Iterator end)
 
template<class Iterator >
std::pair< Iterator, StatusparseStatusLine (const Iterator begin, const Iterator end)
 
template<typename T , class Iterator , typename std::enable_if< std::is_unsigned< T >::value >::type * = nullptr>
stringToUint (const Iterator begin, const Iterator end)
 
template<typename T , class Iterator , typename std::enable_if< std::is_unsigned< T >::value >::type * = nullptr>
hexStringToUint (const Iterator begin, const Iterator end)
 
std::string encodeRequestLine (const std::string &method, const std::string &target)
 
std::string encodeHeaderFields (const HeaderFields &headerFields)
 
template<class Iterator >
std::string encodeBase64 (const Iterator begin, const Iterator end)
 
std::vector< std::uint8_t > encodeHtml (const Uri &uri, const std::string &method, const std::vector< uint8_t > &body, HeaderFields headerFields)
 

Function Documentation

◆ digitToUint()

template<typename T , typename C , typename std::enable_if< std::is_unsigned< T >::value >::type * = nullptr>
constexpr T http::detail::digitToUint ( const C  c)
constexpr

◆ encodeBase64()

template<class Iterator >
std::string http::detail::encodeBase64 ( const Iterator  begin,
const Iterator  end 
)

◆ encodeHeaderFields()

std::string http::detail::encodeHeaderFields ( const HeaderFields headerFields)
inline

◆ encodeHtml()

std::vector<std::uint8_t> http::detail::encodeHtml ( const Uri uri,
const std::string &  method,
const std::vector< uint8_t > &  body,
HeaderFields  headerFields 
)
inline

◆ encodeRequestLine()

std::string http::detail::encodeRequestLine ( const std::string &  method,
const std::string &  target 
)
inline

◆ getAddressFamily()

constexpr int http::detail::getAddressFamily ( const InternetProtocol  internetProtocol)
constexpr

◆ getLastError()

int http::detail::getLastError ( )
inlinenoexcept
Here is the caller graph for this function:

◆ hexDigitToUint()

template<typename T , typename C , typename std::enable_if< std::is_unsigned< T >::value >::type * = nullptr>
constexpr T http::detail::hexDigitToUint ( const C  c)
constexpr

◆ hexStringToUint()

template<typename T , class Iterator , typename std::enable_if< std::is_unsigned< T >::value >::type * = nullptr>
T http::detail::hexStringToUint ( const Iterator  begin,
const Iterator  end 
)

◆ isAlphaChar()

template<typename C >
constexpr bool http::detail::isAlphaChar ( const C  c)
constexprnoexcept

◆ isDigitChar()

template<typename C >
constexpr bool http::detail::isDigitChar ( const C  c)
constexprnoexcept

◆ isObsoleteTextChar()

template<typename C >
constexpr bool http::detail::isObsoleteTextChar ( const C  c)
constexprnoexcept

◆ isTokenChar()

template<typename C >
constexpr bool http::detail::isTokenChar ( const C  c)
constexprnoexcept

◆ isVisibleChar()

template<typename C >
constexpr bool http::detail::isVisibleChar ( const C  c)
constexprnoexcept

◆ isWhiteSpaceChar()

template<typename C >
constexpr bool http::detail::isWhiteSpaceChar ( const C  c)
constexprnoexcept

◆ parseFieldContent()

template<class Iterator >
std::pair<Iterator, std::string> http::detail::parseFieldContent ( const Iterator  begin,
const Iterator  end 
)

◆ parseFieldValue()

template<class Iterator >
std::pair<Iterator, std::string> http::detail::parseFieldValue ( const Iterator  begin,
const Iterator  end 
)

◆ parseHeaderField()

template<class Iterator >
std::pair<Iterator, HeaderField> http::detail::parseHeaderField ( const Iterator  begin,
const Iterator  end 
)

◆ parseHttpVersion()

template<class Iterator >
std::pair<Iterator, HttpVersion> http::detail::parseHttpVersion ( const Iterator  begin,
const Iterator  end 
)

◆ parseReasonPhrase()

template<class Iterator >
std::pair<Iterator, std::string> http::detail::parseReasonPhrase ( const Iterator  begin,
const Iterator  end 
)

◆ parseStatusCode()

template<class Iterator >
std::pair<Iterator, std::uint16_t> http::detail::parseStatusCode ( const Iterator  begin,
const Iterator  end 
)

◆ parseStatusLine()

template<class Iterator >
std::pair<Iterator, Status> http::detail::parseStatusLine ( const Iterator  begin,
const Iterator  end 
)

◆ parseToken()

template<class Iterator >
std::pair<Iterator, std::string> http::detail::parseToken ( const Iterator  begin,
const Iterator  end 
)

◆ parseUri()

template<class Iterator >
Uri http::detail::parseUri ( const Iterator  begin,
const Iterator  end 
)

◆ skipWhiteSpaces()

template<class Iterator >
Iterator http::detail::skipWhiteSpaces ( const Iterator  begin,
const Iterator  end 
)

◆ stringToUint()

template<typename T , class Iterator , typename std::enable_if< std::is_unsigned< T >::value >::type * = nullptr>
T http::detail::stringToUint ( const Iterator  begin,
const Iterator  end 
)