Serenity Operating System
1/*
2 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
3 * Copyright (c) 2022, the SerenityOS developers.
4 *
5 * SPDX-License-Identifier: BSD-2-Clause
6 */
7
8#pragma once
9
10#include <AK/ByteBuffer.h>
11#include <AK/RefCounted.h>
12
13namespace Core {
14
15class NetworkResponse : public RefCounted<NetworkResponse> {
16public:
17 virtual ~NetworkResponse() = default;
18
19 bool is_error() const { return m_error; }
20
21protected:
22 explicit NetworkResponse() = default;
23
24 bool m_error { false };
25};
26
27}