feat(esp_http_client): Added ALPN feature in esp_http_client
Added the alpn field in esp_http_clinet_config_t struct. So that user can modify from the esp_http_clinet component.
This commit is contained in:
@@ -691,6 +691,11 @@ static bool init_common_tcp_transport(esp_http_client_handle_t client, const esp
|
||||
}
|
||||
esp_transport_tcp_set_interface_name(transport, client->if_name);
|
||||
}
|
||||
#if CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS
|
||||
if (config->alpn_protos) {
|
||||
esp_transport_ssl_set_alpn_protocol(transport, config->alpn_protos);
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user