Schematic diagram of the results of self-developed http server

Recently I learned a small open source library Tinyhttp, thinking about writing an http server myself to verify it

The code can be cloned on github if you are interested 

https://github.com/zywblog/WebSocket

Contains explanations, personal notes and understanding

The first thing to do is to log in to the interface, and return a static web page, the result is as follows:


Because the account entered casually, it shows login failed 


The following is to verify the addition. Note that the following not only prints the result but also prints the two parameters.



The following is done to register users and display the current user information. The database mysql is used here


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325391329&siteId=291194637