}
public void initialize(boolean secure){
request = new HttpRequest();
inputBuffer = new HttpInputBuffer(request);
inputStream = secure ? new SSLByteBufferInputStream()
: new ByteBufferInputStream();
inputBuffer.setInputStream(inputStream);
request.setInputBuffer(inputBuffer);
response = new Response();