openharmony 鸿蒙 capi-netstack-http-requestoptions

2026-08-25 浏览 (1)

Http_RequestOptions

typedef struct Http_RequestOptions {...} Http_RequestOptions

Overview

Defines the structure of HTTP requests.

Since: 20

Related module: netstack

Header file: net_http_type.h

Summary

Member Variables

NameDescription
const char *methodHTTP request method.
uint32_t priorityHTTP request priority.
Http_Headers *headersPointer to the HTTP request header. For details, see Http_Headers.
uint32_t readTimeoutRead timeout duration.
uint32_t connectTimeoutConnection timeout duration.
Http_HttpProtocol httpProtocolHTTP protocol. For details, see Http_HttpProtocol.
Http_Proxy *httpProxyPointer to the HTTP proxy configuration, which indicates whether to use a proxy. By default, proxy is not used. For details, see Http_Proxy.
const char *caPathCertificate path. If the CA certificate path is set, the system uses the CA certificate in the specified path. Otherwise, the system uses the preset CA certificate.
int64_t resumeFromDownload start position. This field can be used only for the GET method.
int64_t resumeToDownload end position. This field can be used only for the GET method.
Http_ClientCert *clientCertPointer to the client certificate configuration. For details, see Http_ClientCert.
const char *dnsOverHttpsHTTPS server for DNS resolution.
Http_AddressFamilyType addressFamilyIP address family. For details, see Http_AddressFamilyType.

你可能感兴趣的鸿蒙文章

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/f1Gb7uVk