drogonframework / drogonframework/drogon

Is it possible to somehow declare the protocol within the server and client? Is there such a mechanism in dragon?

Open
#1,203 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 13h
Merged PRs (30d)
14

Description

Good afternoon.
Sorry if I wrote in the wrong section.

I tried to use your project and create a server. My idea was to make several Services and link them through a mutual connection. I wanted to do all this through one project by changing the `BUILD_TYPE` key to assemble the necessary Service. To deploy the backend for each Service, I used `drogon::HttpController` and described all the requests. When I connect from another Service to this one, I use `drogon::HttpClient`, but I didn't find how to describe the requests in this case and wrote them manually. The question is this: is it possible to somehow describe all the requests of one Service so that they can be used in the implementation as for the server side (`drogon::HttpController`) so for the client part (`drogon::HttpClient`)?
Thus, I planned not to get errors if, say, the server part is updated (requests are added) and I forget to update the client part.

p.s. sorry if something like this already exists, I recently started studying `drogon` and may have overlooked the necessary code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.