Open tedli opened 7 years ago
Thanks @tedli for you feedback. Yes, libcurl_json_client is mainly designed for testing, and it is true that silicon lack of a good http client to call others APIs. For now, I suggest you to use the libcurl C library: https://curl.haxx.se/libcurl/c/ . I think that it's better wait for coroutines (soon available in Clang) to write a C++ http client since they will enable async requests implementation.
silicon
is really an awesome framework, thanks for the great work.When writting APIs using silicon, I need to call other RESTful APIs what are served as http service.
I wrote dummy
sl::http_api
, and uselibcurl_json_client
to make requests.However the
libcurl_json_client
seemed designed for testing. Found no way to specify something like a auth header nor ways to retrieve headers from the response.It will be really convenient if I can write some code like this:
I write some c++, but lack of experience and advanced skills to write such elegant code like silicon. But I can still try to give a hand.