blob: 1968590c793502999cb8df0408ca2d99ac782fcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include <AK/Retainable.h>
#include <AK/ByteBuffer.h>
class CNetworkResponse : public Retainable<CNetworkResponse> {
public:
virtual ~CNetworkResponse();
bool is_error() const { return m_error; }
const ByteBuffer& payload() const { return m_payload; }
protected:
explicit CNetworkResponse(ByteBuffer&&);
bool m_error { false };
ByteBuffer m_payload;
};
|