Is there re-usable code in grizzly that I can use for http parsing?
ie. It would be great to feed in bytes like so and it returns null if
there is not yet enough bytes
private byte[] previousData;
byte[] data = incomingMergedWithPrevious(previousData);
HttpResponse resp = httpResponseParser.parse(data);
if(resp == null) {
return; //we do not have full data to parse yet
}
//otherwise fire the response to someone else.
OR maybe I could re-use the code a different way. All I know is I get
bytes that don't always have all the http headers yet since it is
asynch stuff. Any way to parse stuff?
thanks,
Dean