LeviLamina
Loading...
Searching...
No Matches
Response.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Bedrock::Http { class Status; }
8namespace Json { class Value; }
9// clang-format on
10
11namespace Bedrock::Http {
12
13class Response {
14public:
15 // member variables
16 // NOLINTBEGIN
20 // NOLINTEND
21
22public:
23 // prevent constructor by default
24 Response& operator=(Response const&);
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCNAPI Response();
30
32
33 MCNAPI explicit Response(::Bedrock::Http::Status status);
34
35 MCNAPI_C ::gsl::span<uchar const> getBodyAsBytes() const;
36
37 MCNAPI ::Json::Value getBodyAsJson() const;
38
39 MCNAPI ::std::string getBodyAsUtf8String() const;
40
41 MCNAPI ~Response();
42 // NOLINTEND
43
44public:
45 // constructor thunks
46 // NOLINTBEGIN
47 MCNAPI void* $ctor();
48
49 MCNAPI void* $ctor(::Bedrock::Http::Response const&);
50
51 MCNAPI void* $ctor(::Bedrock::Http::Status status);
52 // NOLINTEND
53
54public:
55 // destructor thunk
56 // NOLINTBEGIN
57 MCNAPI void $dtor();
58 // NOLINTEND
59};
60
61} // namespace Bedrock::Http
Definition Response.h:13
MCAPI Response(::Bedrock::Http::Response const &)
MCAPI::Json::Value getBodyAsJson() const
MCAPI void * $ctor(::Bedrock::Http::Status status)
MCAPI::std::string getBodyAsUtf8String() const
MCAPI void * $ctor(::Bedrock::Http::Response const &)
MCAPI void * $ctor()
MCAPI Response(::Bedrock::Http::Status status)
Definition Status.h:7
Definition Value.h:16
Definition Alias.h:14