hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: [jira] Resolved: (HTTPCORE-106) factor out HTTP parsing
Date Mon, 06 Aug 2007 15:40:56 GMT
On Mon, 2007-08-06 at 17:31 +0200, Roland Weber wrote:
> Hi Oleg,
> 
> I've left the computer switched off for the weekend :-)
> 
> If you don't mind, I would like to investigate a slightly
> different take at the HttpMessageParser later this month
> or early in September:
> - stateless, re-usable implementation
> - separate parseRequest and parseResponse methods
> - fewer static methods for simplified overriding
> 
> Having a single class for parsing requests and responses
> should make it simpler for applications that need to change
> how headers are parsed.
> 
> Would such changes in core interfere with NIO?
> 

I am afraid so, as NIO parsers have got to be stateful. They need to
maintain state as message heads may be transmitted in multiple
incomplete chunks. So, we either have to have a completely different
message parsing frameworks for HttpCore main and HttpCore NIO or keep
request / response parsers stateful and separate.

Oleg   

> cheers,
>   Roland
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Mime
View raw message