Hi Jean-Yves,

Internally the NRE (Restlet engine) does convert the Status instance to the
standard format (see
com.noelios.restlet.http.HttpServerCall#writeResponseHead () method).

The Status#toString() method just provides a convenient/simple string value.
Do you have a specific use case that requires this value to conform to the
HTTP spec?

Best regards,
Jerome

-----Message d'origine-----
De : news [mailto:[EMAIL PROTECTED] De la part de Jean-Yves Cronier
Envoyé : lundi 23 juin 2008 01:09
À : [email protected]
Objet : Standard status-line in Status

As defined in RFC2616 (6.1)
http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1

Is it better to change org.restlet.data.Status#toString() to comform to 
[HTTP-Version SP Status-Code SP Reason-Phrase CRLF] ?

If no: What is the best way to build "Status-Line" of a 
org.restlet.data.Status ?

Reply via email to