Java tutorial
package org.apache.http.impl.io; import java.io.IOException; import org.apache.http.HttpRequest; import org.apache.http.annotation.NotThreadSafe; import org.apache.http.io.SessionOutputBuffer; import org.apache.http.message.LineFormatter; import org.apache.http.params.HttpParams; @NotThreadSafe @Deprecated public class HttpRequestWriter extends AbstractMessageWriter<HttpRequest> { public HttpRequestWriter(SessionOutputBuffer sessionOutputBuffer, LineFormatter lineFormatter, HttpParams httpParams) { super(sessionOutputBuffer, lineFormatter, httpParams); } protected void writeHeadLine(HttpRequest httpRequest) throws IOException { this.lineFormatter.formatRequestLine(this.lineBuf, httpRequest.getRequestLine()); this.sessionBuffer.writeLine(this.lineBuf); } }