openharmony 鸿蒙 capi-netstack-http-response

2026-08-25 浏览 (1)

Http_Response

typedef struct Http_Response {...} Http_Response

Overview

Defines the structure of HTTP responses.

Since: 20

Related module: netstack

Header file: net_http_type.h

Summary

Member Variables

NameDescription
Http_Buffer bodyHTTP response data. For details, see Http_Buffer.
Http_ResponseCode responseCodeHTTP response code. For details, see Http_ResponseCode.
Http_Headers *headersPointer to the HTTP response header. For details, see Http_Headers.
char *cookiesPointer to the HTTP response cookies.
Http_PerformanceTiming *performanceTimingPointer to the HTTP response timing. For details, see Http_PerformanceTiming.

Member Functions

NameDescription
void (*destroyResponse)(struct Http_Response **response)Callback function for destroying an HTTP response.

Member Function Description

destroyResponse()

void (*destroyResponse)(struct Http_Response **response)

Description

Callback function for destroying an HTTP response.

Since: 20

Parameters

NameDescription
struct Http_Response **responsePointer to the HTTP response to be destroyed. For details, see Http_Response.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-netconnection-netconn-connectionproperties

openharmony 鸿蒙 errorcode-net-mdns

openharmony 鸿蒙 js-apis-net-ethernet-sys

openharmony 鸿蒙 errorcode-net-http

openharmony 鸿蒙 capi-netstack-http-proxy

openharmony 鸿蒙 js-apis-system-fetch

openharmony 鸿蒙 errorcode-kernel

openharmony 鸿蒙 capi-netstack-netstack-certblob

openharmony 鸿蒙 js-apis-net-mdns

openharmony 鸿蒙 capi-netstack-websocket-closeoption

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/t1Iewp0C