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
Class WebResponse
#include <Geode/utils/web.hpp>
classWebResponse{ ... }
No description provided
Examples0
Public static methods0
Public member functions10
boolok()const
No description provided
intcode()const
No description provided
geode::Result<std::string>string()const
No description provided
geode::Result<matjson::Value>json()const
No description provided
geode::ByteVectordata()const
No description provided
geode::Result<>into()const
No description provided
std::vector<std::string>headers()const
No description provided
std::optional<std::string>header(std::string_viewname)const
No description provided
std::optional<std::vector<std::string>>getAllHeadersNamed(std::string_viewname)const
name
name of the header
std::optional<std::vector<std::string>>
std::stringconst&errorMessage()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.