2020-01-18 08:38:21 +00:00
|
|
|
/*
|
2024-10-04 11:19:50 +00:00
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <andreas@ladybird.org>
|
2022-02-26 16:09:45 +00:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2020-01-18 08:38:21 +00:00
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 08:38:21 +00:00
|
|
|
*/
|
|
|
|
|
2019-04-07 12:36:10 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/ByteBuffer.h>
|
2019-06-21 16:58:45 +00:00
|
|
|
#include <AK/RefCounted.h>
|
2019-04-07 12:36:10 +00:00
|
|
|
|
2020-02-02 11:34:39 +00:00
|
|
|
namespace Core {
|
|
|
|
|
|
|
|
class NetworkResponse : public RefCounted<NetworkResponse> {
|
2019-04-07 12:36:10 +00:00
|
|
|
public:
|
2022-02-26 16:09:45 +00:00
|
|
|
virtual ~NetworkResponse() = default;
|
2019-04-07 12:36:10 +00:00
|
|
|
|
|
|
|
bool is_error() const { return m_error; }
|
|
|
|
|
|
|
|
protected:
|
2022-02-26 16:09:45 +00:00
|
|
|
explicit NetworkResponse() = default;
|
2019-04-07 12:36:10 +00:00
|
|
|
|
|
|
|
bool m_error { false };
|
|
|
|
};
|
2020-02-02 11:34:39 +00:00
|
|
|
|
|
|
|
}
|