4 ms·
Another option is to implement your API in a sans-io form. Since k8s-openapi was mentioned (albeit for a different reason), I'll point out that its API gave you
by Arnavion 3y ago
Another option is to implement your API in a sans-io form. Since k8s-openapi was mentioned (albeit for a different reason), I'll point out that its API gave you a request value that you could send using whatever sync or async HTTP client you wanted to use. It also gave you a corresponding function to parse the response, that you would call with the response bytes your client gave to you.
https://github.com/Arnavion/k8s-openapi/blob/v0.19.0/README.md#not-restricted-to-a-single-http-client-implementation-and-works-with-both-synchronous-and-asynchronous-http-clients https://github.com/Arnavion/k8s-openapi/blob/v0.19.0/README....
(Past tense because I removed all the API features from k8s-openapi after that release, for unrelated reasons.)
- deleted 3y ago[deleted]