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