Afaik libcurl is for clients only, but I also need to implement a server. Otherwise it sounds like exactly what I wish for from the governance perspective
It includes http/https/ws/wss client and server code in just a few files (although last I checked, some files are needlessly duplicated in 2 different repos).