Class WebResponse

#include <Noahh/utils/web.hpp>
classWebResponse{ ... }
No description provided
Examples0
Public static methods0
Public member functions17
boolinfo()const
No description provided
boolok()const
No description provided
boolredirected()const
No description provided
boolbadClient()const
No description provided
boolbadServer()const
No description provided
boolerror()const
No description provided
boolcancelled()const
No description provided
intcode()const
No description provided
intstring()const
No description provided
intjson()const
No description provided
noahh::ByteVectorconst&data()const
No description provided
noahh::ByteVectordata()
No description provided
intinto()const
No description provided
intheaders()const
No description provided
intgetAllHeadersNamed()const

Retrieves a list of all headers from the response with a given name - there can be multiple headers with the same name, such as Set-Cookie, with each cookie in a separate header

Parameters

name

name of the header
Return value
std::optional<std::vector<std::string>>
std::string_viewerrorMessage()const

Returns additional error information, in case the request failed. In case the request did not fail, or no more information is available beyond what string returns, an empty string is returned.

Fields0
Protected member functions0
Protected fields0
Derived classes0