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 functions18
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
geode::Result<std::string>string()const
No description provided
geode::Result<matjson::Value>json()const
No description provided
geode::ByteVectorconst&data()const
No description provided
geode::ByteVectordata()
No description provided
geode::Result<>into()const
No description provided
std::vector<std::string>headers()const
No description provided
std::optional<geode::ZStringView>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::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.
geode::utils::web::RequestTimingsconst&timings()const
Returns the timings of the request, with detailed information about how long each phase of the request took. These values will be all zeroes if the request did not complete successfully.