Class: HttpResponse
networkBeta
表示一个 HTTP 响应。包含了请求及对应响应的相关信息。
Main object that contains result information from a request.
Properties
body
readonlybody:string
Beta
Remarks
响应的主体内容。
Body content of the HTTP response.
headers
readonlyheaders:HttpHeader[]
Beta
Remarks
通过请求返回的响应标头集合。
A collection of HTTP response headers returned from the request.
request
readonlyrequest:HttpRequest
Beta
Remarks
该响应对应的请求参数信息。
Information that was used to formulate the HTTP response that this object represents.
status
readonlystatus:number
Beta
Remarks
请求响应的状态代码。例如,404 表示未找到资源,500 则表示服务器内部错误。
HTTP response code for the request. For example, 404 represents resource not found, and 500 represents an internal server error.
Methods
deserialize()
deserialize(
identifier):ISerializable
World Mutation Beta
Parameters
identifier
string
Returns
ISerializable
Remarks
Throws
This function can throw errors.
