LeviLamina
Loading...
Searching...
No Matches
ScriptNetHttpClient.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/deps/scripting/binding_type/ClassBindingBuilder.h"
8#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
9#include "mc/deps/scripting/script_engine/Promise.h"
10
11// auto generated forward declare list
12// clang-format off
13class Scheduler;
14namespace ScriptModuleMinecraftNet { struct ScriptNetRequest; }
15namespace ScriptModuleMinecraftNet { struct ScriptNetResponse; }
16namespace Scripting { class ScriptObjectFactory; }
17namespace Scripting { class WeakLifetimeScope; }
18namespace Scripting { struct Error; }
19// clang-format on
20
21namespace ScriptModuleMinecraftNet {
22
24public:
25 // ScriptNetHttpClient inner types declare
26 // clang-format off
27 struct RequestProcessor;
28 // clang-format on
29
30 // ScriptNetHttpClient inner types define
32 : public ::std::enable_shared_from_this<::ScriptModuleMinecraftNet::ScriptNetHttpClient::RequestProcessor> {
33 public:
34 // member variables
35 // NOLINTBEGIN
39 // NOLINTEND
40
41 public:
42 // prevent constructor by default
43 RequestProcessor& operator=(RequestProcessor const&);
46
47 public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI RequestProcessor(::std::string&& taskGroupName, ::Bedrock::NonOwnerPointer<::Scheduler> serverScheduler);
51
52 MCAPI ::Scripting::Promise<
55 void>
57 // NOLINTEND
58
59 public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCAPI void* $ctor(::std::string&& taskGroupName, ::Bedrock::NonOwnerPointer<::Scheduler> serverScheduler);
63 // NOLINTEND
64 };
65
66public:
67 // member variables
68 // NOLINTBEGIN
70 // NOLINTEND
71
72public:
73 // prevent constructor by default
76
77public:
78 // member functions
79 // NOLINTBEGIN
80 MCAPI
81 ScriptNetHttpClient(::std::string const& descriptorString, ::Bedrock::NonOwnerPointer<::Scheduler> serverScheduler);
82
83 MCAPI ::Scripting::Promise<
86 void>
87 get(::Scripting::WeakLifetimeScope const& scope, ::Scripting::ScriptObjectFactory& factory, ::std::string const& uri
88 );
89
90 MCFOLD ::ScriptModuleMinecraftNet::ScriptNetHttpClient&
92
93 MCAPI ::Scripting::Promise<
96 void>
97 request(
101 );
102
103 MCAPI ~ScriptNetHttpClient();
104 // NOLINTEND
105
106public:
107 // static functions
108 // NOLINTBEGIN
109 MCAPI static ::Scripting::ClassBindingBuilder<::ScriptModuleMinecraftNet::ScriptNetHttpClient> bind();
110 // NOLINTEND
111
112public:
113 // constructor thunks
114 // NOLINTBEGIN
115 MCAPI void* $ctor(::std::string const& descriptorString, ::Bedrock::NonOwnerPointer<::Scheduler> serverScheduler);
116 // NOLINTEND
117
118public:
119 // destructor thunk
120 // NOLINTBEGIN
121 MCAPI void $dtor();
122 // NOLINTEND
123};
124
125} // namespace ScriptModuleMinecraftNet
Definition NonOwnerPointer.h:9
Definition Scheduler.h:13
Definition ScriptObjectFactory.h:7
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:12
Definition ScriptNetHttpClient.h:23
Definition Error.h:7
Definition Alias.h:14