Closed pforemski closed 8 years ago
Idea: provide one common HTTP client + JSON parsing function, using alternative JSON parser: https://github.com/buger/jsonparser
Implementation of particular DNS-over-HTTPS provider would input a full HTTP request (URL + headers + cookies?), and get parsed, unstructured JSON as the output. Then, it would need to rewrite into the Request struct.
Preliminary implementation in https://github.com/pforemski/dingo/commit/c23c3addbd5651f20bd0391471b0e165d623f9ed
This is in progress: allow modules to implement clients for other servers & APIs (e.g. OpenDNS would be nice).