author | ms.author | ms.service | title | description |
---|---|---|---|---|
jakeshirley |
jashir |
minecraft-bedrock-edition |
minecraft/server-net.HttpResponse Class |
Contents of the @minecraft/server-net.HttpResponse class. |
Main object that contains result information from a request.
read-only body: string;
Body content of the HTTP response.
Type: string
read-only headers: HttpHeader[];
A collection of HTTP response headers returned from the request.
Type: HttpHeader[]
read-only request: HttpRequest;
Information that was used to formulate the HTTP response that this object represents.
Type: HttpRequest
read-only status: number;
HTTP response code for the request. For example, 404 represents resource not found, and 500 represents an internal server error.
Type: number