模块 server-netbeta

@minecraft/server-net 模块包含了用于发起基于 HTTP 的请求的类型。 此模块仅可用于基岩版专用服务器。

The @minecraft/server-net module contains types for executing HTTP-based requests. This module can only be used on Bedrock Dedicated Server. These APIs do not function within the Minecraft game client or within Minecraft Realms.

Manifest Details

{
"module_name": "@minecraft/server-net",
"version": "1.0.0-beta"
}

枚举

HttpRequestMethod
PacketId

HttpClient
HttpHeader
HttpRequest
HttpResponse
InternalHttpRequestError
MalformedHttpRequestError
NetworkBeforeEvents
PacketReceiveBeforeEventSignal
PacketReceivedBeforeEvent
PacketSendBeforeEvent
PacketSendBeforeEventSignal

接口

PacketEventOptions

变量

beforeEvents
http