3#include "mc/_HeaderOutputPredefine.h"
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"
26namespace Scripting {
struct Error; }
29namespace ScriptModuleMinecraftNet {
31struct ScriptNetHttpClient {
39 struct RequestProcessor
40 :
public ::std::enable_shared_from_this<::ScriptModuleMinecraftNet::ScriptNetHttpClient::RequestProcessor> {
53 RequestProcessor& operator=(RequestProcessor
const&);
54 RequestProcessor(RequestProcessor
const&);
61 ::std::string&& taskGroupName,
64 ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate> delegate
69 MCNAPI ::Scripting::Promise<
89 ::std::string&& taskGroupName,
92 ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate> delegate
105 ScriptNetHttpClient& operator=(ScriptNetHttpClient
const&);
106 ScriptNetHttpClient(ScriptNetHttpClient
const&);
107 ScriptNetHttpClient();
113 ::std::string
const& descriptorString,
116 ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate> delegate
121 MCNAPI ::Scripting::Promise<
132 ::std::string
const& uri);
134 MCNAPI ::Scripting::Promise<
155 MCNAPI static ::Scripting::ClassBinding
bind();
162 ::std::string
const& descriptorString,
165 ::std::unique_ptr<::ScriptModuleMinecraftNet::INativeHttpDelegate> delegate
Definition NonOwnerPointer.h:9
Definition Scheduler.h:15
Definition INativeHttpDelegate.h:14
Definition ScriptHttpRequestLimitExceededError.h:15
Definition ScriptInternalHttpRequestError.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
Definition ScriptNetHttpClient.h:40
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 ~ScriptNetHttpClient()
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