How I can add Header params in restlet android?
I have following code:
ClientResource clientResource = null;
try {
clientResource = new ClientResource(jsonRestHelper.getUrl());
for (Parameter parameter : jsonRestHelper.getParameters()) {
//here works perfectly, jsonRestHelper is a helper class
clientResource.addQueryParameter(parameter);
}
//here I wanna add headers param example
//addHeader("Key","Value");
} catch (Exception e) {}