if ( header.isClient() )
{
HttpRequest request = new HttpRequest( header, (header.getAttachementInfo() != null) ? header
.getAttachementInfo().toString() : HttpRequest.HTTP_POST );
if ( !noBuffer ) request.addData( buffer );
headerBuf = request.toByteBuffer();
if ( logger.isLoggable( Level.FINEST ) )
{
logger.log( Level.FINEST, "Preparing to write client request with " + headerBuf.limit() + " bytes:\n"
+ IOUtil.decodeToString( headerBuf ) );
}