1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-13 21:57:36 +00:00
serenity/LibGUI/GNetworkResponse.h
Andreas Kling 8f30657390 Start working on a Downloader app and backing classes in LibGUI.
LibGUI is slowly becoming LibKitchensink but I'm okay with this for now.
2019-04-07 14:36:10 +02:00

18 lines
395 B
C++

#pragma once
#include <AK/Retainable.h>
#include <AK/ByteBuffer.h>
class GNetworkResponse : public Retainable<GNetworkResponse> {
public:
virtual ~GNetworkResponse();
bool is_error() const { return m_error; }
const ByteBuffer& payload() const { return m_payload; }
protected:
explicit GNetworkResponse(ByteBuffer&&);
bool m_error { false };
ByteBuffer m_payload;
};