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