HTTP examples

Request Line Every HTTP request begins with the request line.This consists of the HTTP method, the requested resource and the HTTP protocol version. GET /home.html HTTP/1.1 In this example, GET is the HTTP method, /home.html is the resource requested and HTTP 1.1 is the protocol used. HTTP Methods HTTP methods indicate the action that Read more…

LRU (implement in JAVA)

LRU(Least recently used) eliminates data based on the history of accesses, with the core idea being that “if data has been accessed recently, it has a higher chance of being accessed in the future”. We can use the LinkedHashMap built in Java. Also, we can implement this by ourselves.