
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: Client in Connexus (Part 7): Adding the Client Layer.
In this article we continue the development of the connexus library. In this chapter we build the CHttpClient class responsible for sending a request and receiving an order. We also cover the concept of mocks, leaving the library decoupled from the WebRequest function, which allows greater flexibility for users.
In this seventh article of the series, we will add the most anticipated part of the entire library, we will make the request using the WebRequest function, we will not directly create access to it, there will be some classes and interfaces in the process. Let's go!
Just to remind you of the current state of the library, this is the current diagram:
The goal here is to receive a CHttpRequest object, that is, a ready HTTP request, already configured with header, body, url, method and timeout and effectively send an HTTP request using the WebRequest function. It must also process the request and return a CHttpResponse object, with the response data such as header, body, status code and total duration of the request.
Author: joaopedrodev