Discussing the article: "HTTP and Connexus (Part 2): Understanding HTTP Architecture and Library Design"

 

Check out the new article: HTTP and Connexus (Part 2): Understanding HTTP Architecture and Library Design.

This article explores the fundamentals of the HTTP protocol, covering the main methods (GET, POST, PUT, DELETE), status codes and the structure of URLs. In addition, it presents the beginning of the construction of the Conexxus library with the CQueryParam and CURL classes, which facilitate the manipulation of URLs and query parameters in HTTP requests.

This article is the continuation of a series of articles where we will build a library called Connexus. In the first article, we understood the basic functioning of the WebRequest function, understanding each of its parameters and also created an example code that demonstrates the use of this function and its difficulties. In this article, we will continue to understand a little more about the HTTP protocol, how a URL works and what elements are used to build one, and create two initial classes, which are:

  • CQueryParam: Class to manage query parameters in URL
  • CURL: Class that contains all the elements of a URL, including an instance of CQueryParam


    Author: joaopedrodev