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

Name Description
const char *method HTTP request method.
uint32_t priority HTTP request priority.
Http_Headers *headers Pointer to the HTTP request header. For details, see Http_Headers.
uint32_t readTimeout Read timeout duration.
uint32_t connectTimeout Connection timeout duration.
Http_HttpProtocol httpProtocol HTTP protocol. For details, see Http_HttpProtocol.
Http_Proxy *httpProxy Pointer 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 *caPath Certificate 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 resumeFrom Download start position. This field can be used only for the GET method.
int64_t resumeTo Download end position. This field can be used only for the GET method.
Http_ClientCert *clientCert Pointer to the client certificate configuration. For details, see Http_ClientCert.
const char *dnsOverHttps HTTPS server for DNS resolution.
Http_AddressFamilyType addressFamily IP address family. For details, see Http_AddressFamilyType.