How to implement custom HTTP stack (like WinHTTP)?

  http, windows

For learning purposes, I would like to implement a simple HTTP on windows stack like WinHTTP. My goal is to understand exactly how the system configuration (proxy, ssl, etc.) is tied into the HTTP message flow, especially for the Microsoft Windows platform. How would I do that? Is there any existing code where I could get a grip on the topic? My research only brings up stuff like custom HTTP verbs, custom scheme handlers, custom HTTP clients etc. which is not what I am trying to do.

PS: I already took a look at RFC 7235 which is the theoretical basis for what I am trying to do. It’s just the windows specific implementation that I would like to better understand.

Source: Windows Questions