I want to learn how to create a simple local server in ruby like maybe using webbrick. The main purpose here is that I am creating a web application and I want to do it myself without using any existing framework, so that I can learn the inner workings.
Share
I think you just need to start doing it.
My starting server:
Of course, based on the filename you should try to fetch a file and send it to the client, maybe something like:
well if you want to learn, just start coding and trying different things, you may also look at the source code of some webservers on github. But, there is no point in posting here their code.
I just showed you the really basics.