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/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/deps/scripting/script_engine/Promise.h"
9
10// auto generated forward declare list
11// clang-format off
12class Scheduler;
13namespace ScriptModuleMinecraftNet { class INativeHttpDelegate; }
14namespace ScriptModuleMinecraftNet { class ScriptHttpRequestLimitExceededError; }
15namespace ScriptModuleMinecraftNet { class ScriptInternalHttpRequestError; }
16namespace ScriptModuleMinecraftNet { class ScriptMalformedUriError; }
17namespace ScriptModuleMinecraftNet { class ScriptRequestBodyTooLargeError; }
18namespace ScriptModuleMinecraftNet { class ScriptTLSOnlyError; }
19namespace ScriptModuleMinecraftNet { class ScriptUriNotAllowedError; }
20namespace ScriptModuleMinecraftNet { struct ScriptNetModuleConfig; }
21namespace ScriptModuleMinecraftNet { struct ScriptNetRequest; }
22namespace ScriptModuleMinecraftNet { struct ScriptNetResponse; }
23namespace Scripting { class ScriptObjectFactory; }
24namespace Scripting { class WeakLifetimeScope; }
25namespace Scripting { struct ClassBinding; }
26namespace Scripting { struct Error; }
27// clang-format on
28
29namespace ScriptModuleMinecraftNet {
30
31struct ScriptNetHttpClient {
32public:
33 // ScriptNetHttpClient inner types declare
34 // clang-format off
35 struct RequestProcessor;
36 // clang-format on
37
38 // ScriptNetHttpClient inner types define
39 struct RequestProcessor
40 : public ::std::enable_shared_from_this<::ScriptModuleMinecraftNet::ScriptNetHttpClient::RequestProcessor> {
41 public:
42 // member variables
43 // NOLINTBEGIN
49 // NOLINTEND
50
51 public:
52 // prevent constructor by default
53 RequestProcessor& operator=(RequestProcessor const&);
54 RequestProcessor(RequestProcessor const&);
55 RequestProcessor();
56
57 public:
58 // member functions
59 // NOLINTBEGIN
61 ::std::string&& taskGroupName,
64 ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate> delegate
65 );
66
67 MCNAPI void cleanUp();
68
69 MCNAPI ::Scripting::Promise<
79 ::Scripting::WeakLifetimeScope const& factory,
82 );
83 // NOLINTEND
84
85 public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCNAPI void* $ctor(
89 ::std::string&& taskGroupName,
92 ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate> delegate
93 );
94 // NOLINTEND
95 };
96
97public:
98 // member variables
99 // NOLINTBEGIN
101 // NOLINTEND
102
103public:
104 // prevent constructor by default
105 ScriptNetHttpClient& operator=(ScriptNetHttpClient const&);
106 ScriptNetHttpClient(ScriptNetHttpClient const&);
107 ScriptNetHttpClient();
108
109public:
110 // member functions
111 // NOLINTBEGIN
113 ::std::string const& descriptorString,
116 ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate> delegate
117 );
118
119 MCNAPI void cancelAll(::std::string const& reason);
120
121 MCNAPI ::Scripting::Promise<
132 ::std::string const& uri);
133
134 MCNAPI ::Scripting::Promise<
147 );
148
150 // NOLINTEND
151
152public:
153 // static functions
154 // NOLINTBEGIN
155 MCNAPI static ::Scripting::ClassBinding bind();
156 // NOLINTEND
157
158public:
159 // constructor thunks
160 // NOLINTBEGIN
161 MCNAPI void* $ctor(
162 ::std::string const& descriptorString,
165 ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate> delegate
166 );
167 // NOLINTEND
168
169public:
170 // destructor thunk
171 // NOLINTBEGIN
172 MCNAPI void $dtor();
173 // NOLINTEND
174};
175
176} // namespace ScriptModuleMinecraftNet
Definition NonOwnerPointer.h:9
Definition Scheduler.h:15
Definition INativeHttpDelegate.h:14
Definition ScriptHttpRequestLimitExceededError.h:15
Definition ScriptInternalHttpRequestError.h:15
Definition ScriptMalformedUriError.h:15
Definition ScriptRequestBodyTooLargeError.h:15
Definition ScriptTLSOnlyError.h:15
Definition ScriptUriNotAllowedError.h:15
Definition ScriptObjectFactory.h:7
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:14
MCAPI RequestProcessor(::std::string &&taskGroupName, ::Bedrock::NonOwnerPointer<::Scheduler > serverScheduler, ::ScriptModuleMinecraftNet::ScriptNetModuleConfig config, ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate > delegate)
MCAPI ::Scripting::Promise< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraftNet::ScriptNetResponse >, ::Scripting::Error, ::ScriptModuleMinecraftNet::ScriptRequestBodyTooLargeError, ::ScriptModuleMinecraftNet::ScriptInternalHttpRequestError, ::ScriptModuleMinecraftNet::ScriptHttpRequestLimitExceededError, ::ScriptModuleMinecraftNet::ScriptTLSOnlyError, ::ScriptModuleMinecraftNet::ScriptMalformedUriError, ::ScriptModuleMinecraftNet::ScriptUriNotAllowedError > process(::Scripting::WeakLifetimeScope const &factory, ::Scripting::ScriptObjectFactory &requestHandle, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraftNet::ScriptNetRequest > const &)
MCAPI void * $ctor(::std::string &&taskGroupName, ::Bedrock::NonOwnerPointer<::Scheduler > serverScheduler, ::ScriptModuleMinecraftNet::ScriptNetModuleConfig config, ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate > delegate)
static MCAPI ::Scripting::ClassBinding bind()
MCAPI ::Scripting::Promise< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraftNet::ScriptNetResponse >, ::Scripting::Error, ::ScriptModuleMinecraftNet::ScriptRequestBodyTooLargeError, ::ScriptModuleMinecraftNet::ScriptInternalHttpRequestError, ::ScriptModuleMinecraftNet::ScriptHttpRequestLimitExceededError, ::ScriptModuleMinecraftNet::ScriptTLSOnlyError, ::ScriptModuleMinecraftNet::ScriptMalformedUriError, ::ScriptModuleMinecraftNet::ScriptUriNotAllowedError > get(::Scripting::WeakLifetimeScope const &scope, ::Scripting::ScriptObjectFactory &factory, ::std::string const &uri)
MCAPI ScriptNetHttpClient(::std::string const &descriptorString, ::Bedrock::NonOwnerPointer<::Scheduler > serverScheduler, ::ScriptModuleMinecraftNet::ScriptNetModuleConfig config, ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate > delegate)
MCAPI ::Scripting::Promise< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraftNet::ScriptNetResponse >, ::Scripting::Error, ::ScriptModuleMinecraftNet::ScriptRequestBodyTooLargeError, ::ScriptModuleMinecraftNet::ScriptInternalHttpRequestError, ::ScriptModuleMinecraftNet::ScriptHttpRequestLimitExceededError, ::ScriptModuleMinecraftNet::ScriptTLSOnlyError, ::ScriptModuleMinecraftNet::ScriptMalformedUriError, ::ScriptModuleMinecraftNet::ScriptUriNotAllowedError > request(::Scripting::WeakLifetimeScope const &scope, ::Scripting::ScriptObjectFactory &factory, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraftNet::ScriptNetRequest > const &requestHandle)
MCAPI void cancelAll(::std::string const &reason)
MCAPI void * $ctor(::std::string const &descriptorString, ::Bedrock::NonOwnerPointer<::Scheduler > serverScheduler, ::ScriptModuleMinecraftNet::ScriptNetModuleConfig config, ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate > delegate)
Definition ScriptNetModuleConfig.h:19
Definition ScriptNetRequest.h:19
Definition ScriptNetResponse.h:17
Definition ClassBinding.h:19
Definition Error.h:10
Definition Alias.h:14