Code example for HttpRequestBase

Methods: abort

0
		NetHelper.setHeaders(request, headers);
	} 
 
	public void abort() { 
		if (request != null) {
			request.abort();
		} 
	} 
	 
	public NetResponse execute() throws IOException{ 
		HttpClient client=NetHelper.newHttpClient();
		HttpResponse response=client.execute(request);
		return new NetResponse(response);
	} 
 
	public List<Parameter> getParams() {
		return this.params;
	} 
 
	public List<Header> getHeaders() {
		return this.headers;