public String build(Request request, HttpClient client) throws Exception {
		
		String query = DDG_API_URL + "q=" + this.escape(request.getQuery());
		
		if (request.isStandard()) {
			query += ARG_STD;
		} else {
			query +=(request.isNoHtml()) ? AMP + ARG_NO_HTML : "";
			//query += AMP + ((request.isNoRedirect()) ? ARG_NO_REDIRECT : "");
			query += (request.isFormatJson()) ? AMP + ARG_FORMAT_JSON : AMP + ARG_FORMAT_XML;
			query += (request.isPretty()) ? AMP + ARG_PRETTY : "";
			query += (request.isSkipDisambig()) ? AMP + ARG_SKIP_DISAMBIG : "";
			query += (request.isSafeOff()) ? AMP + ARG_SAFEOFF : "";
		}
		
		
		return query;
	}