-
Book Overview & Buying
-
Table Of Contents
Java Web Internals
By :
Understanding the structure of an HTTP request and response is essential for its implementation, whether it is a single-threaded or multithreaded web server. In this case, processes for handling the request and assembling the response are necessary to achieve successful development, not only creating the algorithms but also knowing how to identify scalable points to increase the degree of parallelism when serving requests.
In this chapter, we explored the structure of an HTTP request, the internal behavior of a web server, and the structure of a URL. We can now decode both HTTP requests and responses, understanding all involved components (most of them are text-based).
In the next chapter, we will explore a simple web server implementation using sockets and discuss the theoretical background. The main purpose of implementing a web server in Java is to understand how a web server works internally and to verify that the same URL can generate several requests to obtain the content...