Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Response.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/http/HeaderCollection.h"
7#include "mc/deps/core/http/Status.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Bedrock::Http::Internal { class IResponseBody; }
12namespace Json { class Value; }
13// clang-format on
14
15namespace Bedrock::Http {
16
17class Response {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 64, ::Bedrock::Http::HeaderCollection> mHeaders;
22 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::Bedrock::Http::Internal::IResponseBody>>> mBody;
23 ::ll::TypedStorage<8, 24, ::Bedrock::Http::Status> mStatus;
24 // NOLINTEND
25
26#ifdef LL_PLAT_S
27#else // LL_PLAT_C
28public:
29 // prevent constructor by default
30 Response(Response const&);
31 Response();
32
33#endif
34public:
35 // member functions
36 // NOLINTBEGIN
37#ifdef LL_PLAT_C
38 MCNAPI ::gsl::span<uchar const> getBodyAsBytes() const;
39#endif
40
41 MCNAPI ::Json::Value getBodyAsJson() const;
42
43 MCAPI ::std::string getBodyAsUtf8String() const;
44
45#ifdef LL_PLAT_C
46 MCNAPI ::Bedrock::Http::Response& operator=(::Bedrock::Http::Response const&);
47#endif
48
49 MCAPI ~Response();
50 // NOLINTEND
51
52public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCAPI void $dtor();
56 // NOLINTEND
57};
58
59} // namespace Bedrock::Http
Definition IResponseBody.h:10
Definition Response.h:17
MCAPI::Json::Value getBodyAsJson() const
Definition Value.h:16