title: How to parse an HTTP Request in Java?
body: <p>When implementing a proxy server, I get an HTTP request as a string, such as this one:</p>
  
  <blockquote>
    <p>GET <a href="http://localhost:54321/x" rel="noreferrer">http://localhost:54321/x</a> HTTP/1.1</p>
    
    <p>Host: localhost:54321</p>
    
    <p>Cache-Control: no-cache</p>
  </blockquote>
  
  <p>Is there a built-in class to parse this request?</p>