The answer to an HttpRequest, whatever its status.
Class in @minecraft/server-net
The answer to an HttpRequest, whatever its status.
import { HttpResponse } from '@minecraft/server-net';Properties
Section titled “Properties”read-only
readonly body: string;The body as text (UTF-8), at most script_net_max_body_bytes.
headers
Section titled “headers”read-only
readonly headers: HttpHeader[];Types
request
Section titled “request”read-only
readonly request: HttpRequest;The request this answers.
Types
status
Section titled “status”read-only
readonly status: number;The HTTP status, as 200 or 404.