HTTP
HTTP is a fundamental stateless protocol designed to transport hypermedia between a server and client. HTTP 1.1 supports the fine-grained caching of resources and the ability to retain persistent connections and chunked transfer encoding. HTTP 1.1 was created in 1999 (refer to the superseded RFC https://tools.ietf.org/html/rfc2068). To cope with the modern demand and usage patterns, the HTTP now supports the WebSocket handshaking and upgrade requests (https://tools.ietf.org/html/rfc6455). The next HTTP 2.0 standard will provide the multiplexing of streams over a single client server channel. There are exciting possibilities for Java EE 8 (expected by May/June 2017) and the HTTP 2.0 support in the Java Servlet 4.0 specification. For more details, see RFC 7540 (http://www.rfc-editor.org/rfc/rfc7540.txt) and JSR 369 (https://www.jcp.org/en/jsr/detail?id=369).
An HTTP request
An HTTP request consists of a payload with a header and then body content. The header information contains the URI...