@minecraft/server-net / HttpResponse
Class: HttpResponse
Defined in: index.d.ts:157
Main object that contains result information from a request.
Constructors
Constructor
protectednew HttpResponse():HttpResponse
Defined in: index.d.ts:178
Returns
HttpResponse
Properties
body
readonlybody:string
Defined in: index.d.ts:161
Body content of the HTTP response.
headers
readonlyheaders:HttpHeader[]
Defined in: index.d.ts:166
A collection of HTTP response headers returned from the request.
request
readonlyrequest:HttpRequest
Defined in: index.d.ts:171
Information that was used to formulate the HTTP response that this object represents.
status
readonlystatus:number
Defined in: index.d.ts:177
HTTP response code for the request. For example, 404 represents resource not found, and 500 represents an internal server error.