hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36647] - RequestEntity wrapping a ByteBuffer
Date Tue, 20 Sep 2005 05:37:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36647>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36647


sormuras@gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From sormuras@gmx.de  2005-09-20 07:37 -------
Hi Ortwig and Oleg!

(In reply to comment #2)
> [...]
> how to write custom request entities instead of including it into the contrib
> package? 

Sure! You're welcome and looking at the writeRequest method, one could re-use
the byte[] allocated before the while-loop and make the chunk size a constructor
parameter. :)

    if (remaining > 0) {
      if (chunk == null) {
         chunk = new byte[remaining];
      }
      buffer.get(chunk, 0, remaining);
      out.write(chunk, 0, remaining);
    }

Cheers again,
Christian

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message