Package dev.latvian.mods.kubejs.web
Class KJSHTTPRequest
java.lang.Object
dev.latvian.apps.tinyserver.http.HTTPRequest
dev.latvian.mods.kubejs.web.KJSHTTPRequest
public class KJSHTTPRequest
extends dev.latvian.apps.tinyserver.http.HTTPRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.component.DataComponentPatchcomponents(com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops) dev.latvian.apps.tinyserver.http.response.HTTPResponsehandleResponse(dev.latvian.apps.tinyserver.http.response.HTTPPayload payload, dev.latvian.apps.tinyserver.http.response.HTTPResponse response, @Nullable Throwable error) @Nullable net.minecraft.resources.ResourceLocationid()net.minecraft.resources.ResourceLocationvoidrunInMainThread(Runnable task) <T> TsupplyInMainThread(Supplier<T> task) Methods inherited from class dev.latvian.apps.tinyserver.http.HTTPRequest
acceptedEncodings, afterInit, afterResponse, bodyBuffer, bodyList, connection, cookie, cookies, country, createPreResponse, formData, formData, fullPath, gitHubEvent, gitHubSignature, header, headers, init, ip, ipv6, mainBody, method, path, pathParts, preInit, query, query, queryString, server, startTime, userAgent, variable, variables
-
Field Details
-
eventLoop
public final net.minecraft.util.thread.BlockableEventLoop<?> eventLoop
-
-
Constructor Details
-
KJSHTTPRequest
public KJSHTTPRequest(net.minecraft.util.thread.BlockableEventLoop<?> eventLoop)
-
-
Method Details
-
registries
-
runInMainThread
-
supplyInMainThread
-
id
-
id
@Nullable public @Nullable net.minecraft.resources.ResourceLocation id() -
components
public net.minecraft.core.component.DataComponentPatch components(com.mojang.serialization.DynamicOps<net.minecraft.nbt.Tag> ops) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
handleResponse
public dev.latvian.apps.tinyserver.http.response.HTTPResponse handleResponse(dev.latvian.apps.tinyserver.http.response.HTTPPayload payload, dev.latvian.apps.tinyserver.http.response.HTTPResponse response, @Nullable @Nullable Throwable error) - Overrides:
handleResponsein classdev.latvian.apps.tinyserver.http.HTTPRequest
-