文件最后提交记录最后更新时间
docs: add OHOS API documentation (1290 APIs, 66 modules) Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
docs: remove platform support section from API docs Signed-off-by: zhangqingnan_codeing <zhangqingnan6@huawei.com> 1 个月前
README.md

IncomingMessage API 列表

本模块包含 11 个 API。

Events(事件)

API 说明 鸿蒙支持
data data 事件是将响应数据传递给应用代码的常规方式。 支持
end 表示响应体已结束,需在 'data' 事件之前注册监听。 支持
aborted 在 HTTP 事务进行中请求被取消时触发。 支持
error 在流式传输响应数据时发生错误时触发,例如服务器在响应仍在传输时关闭了底层连接,此后还会在请求对象上触发 close 事件。 支持

Properties(属性)

API 说明 鸿蒙支持
response.statusCode Integer,表示 HTTP 响应状态码。 支持
response.statusMessage string,表示 HTTP 状态消息。 支持
response.headers Record<string, string string[]>,表示 HTTP 响应头对象。
response.httpVersion string,表示 HTTP 协议版本号,典型值为 '1.0' 或 '1.1'。 支持
response.httpVersionMajor Integer,表示 HTTP 协议主版本号。 支持
response.httpVersionMinor Integer,表示 HTTP 协议次版本号。 支持
response.rawHeaders string[],包含原始 HTTP 响应头的键值列表,与接收到的顺序完全一致。 支持