title: How to parse HTTP in java asynchronously (http client maybe)
body: <p>I have read several stackoverflow questions including </p>
  
  <p><a href="https://stackoverflow.com/questions/5625388/how-to-parse-an-http-request-in-java">How to parse an HTTP Request in Java?</a></p>
  
  <p>which directs to httpcomponents on apache which looks promising, but when you receive bytes asynchronously, you don't get the whole request always so I need something I can keep calling like</p>
  
  <p>requestWriter.fillBuffer AND it looked like they had this but now it seems not to be there</p>
  
  <p><a href="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/impl/io/HttpRequestParser.html" rel="nofollow noreferrer">http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/impl/io/HttpRequestParser.html</a></p>
  
  <p>AND then I would need a return value from that function to tell me the parsing of the http request is complete(complete meaning it has the bytes of the body stuffed somewhere based on the ContentLength header and everything else)</p>
  
  <p>Anyone have an example of this on the web.  I keep running into wanting to do this and searching but finally broke down and decided to ask.</p>