Class WebResponse

#include <Geode/utils/web.hpp>
classWebResponse{ ... }
No description provided
Examples0
Public static methods0
Public member functions9
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::vector<std::string>>getAllHeadersNamed()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>>
Fields0
Protected member functions0
Protected fields0