Yuri Burger wrote:
> Is it possible to improve my J implementation?

Possibly, but as a general rule the first thing to do when
trying to improve the implementation is: review the requirements.

> Each record shall contain attributes named METHOD, 
> HTTP-PROTOCOL-VERSION, PROTOCOL, HOST, PORT, RESOURCE and QUERY 
> with obvious meaning. Besides this, all message headers of the 
> original request shall be presented in the record. The order of 
> the headers in the output is unspecified.

In the attached example, you take the header

Host: ws:81

and in the output appears

HOST: ws

In other words, in some cases all the message headers of
the original request are not presented in the record.

Is this an explicit requirement?  Or is an acceptable implementation,
but not a real requirement?

For example, would

HOST: ws
HOST: ws:81

in the output record be acceptable?

Note also that in the general case the header format you 
specified allows for multiple occurrences of the same header 
name, and also allows for multi-line header values.  I don't
know what you think about these issues...

Thanks,

-- 
Raul

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to