What packages are required for enable http/2 or http/3 support on my openwrt device?

hello im on china and for security i need to succesfully encrypt my dns request in https , however i found this package im using, which is the the best for it i found for my device, https://docs.openwrt.melmac.net/https-dns-proxy/#http3-quic-support

,it says this :

HTTP/2 Support

Some resolvers may require HTTP/2. By default, HTTP/2 is supported by curl in OpenWrt 22.03 and later, if you run an older version of OpenWrt I’d recommend you upgrade to a most recent released version and make sure the following packages are installed: curl, libcurl4, libnghttp2.

what packages are needed in openwrt to enable http/2 or http/3 since is not enabled by default? can someone help me through this?

Revise nginx package and probably add quic parameters to it.