Code example for HttpRequest

Methods: setHeader

0
		for(AuthScope a:asList){
			credsProvider.setCredentials(a, c);
		} 
	} 
	private static final void setOpenRosaHeaders(HttpRequest req){
		req.setHeader(OPEN_ROSA_VERSION_HEADER, OPEN_ROSA_VERSION);
		g.setTime(new Date());
		req.setHeader(DATE_HEADER, DateFormat.format("E,dd MMM yyyy hh:mm:ss zz	",g).toString());
	} 
	public static final HttpHead createOpenRosaHttpHead(URI uri) {
        HttpHead req = new HttpHead(uri);
        setOpenRosaHeaders(req);
        return req;
    } 
 
 
    public static final HttpGet createOpenRosaHttpGet(URI uri) {
        return createOpenRosaHttpGet(uri, "");
    }