For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-net/classes/HttpResponse.md.

Class: HttpResponse

network

Beta

表示一个 HTTP 响应。包含了请求及对应响应的相关信息。

Main object that contains result information from a request.

Properties

body

readonly body: string

Beta

Remarks

响应的主体内容。

Body content of the HTTP response.


headers

readonly headers: HttpHeader[]

Beta

Remarks

通过请求返回的响应标头集合。

A collection of HTTP response headers returned from the request.


request

readonly request: HttpRequest

Beta

Remarks

该响应对应的请求参数信息。

Information that was used to formulate the HTTP response that this object represents.


status

readonly status: 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.

SerializableParseError

同领域相关