Code example for HttpMessage

Methods: addHeader

0
        auth = Base64.encodeToString(input, Base64.NO_WRAP);
        auth = "Basic " + auth;
 
        System.out.println("Authorization: " + auth);
 
        message.addHeader("Authorization", auth);
    } 
 
    private String createUrl(String qrCode) {
        // create the url to call for the update 
        String id = qrCode.replace(Settings.getQrazUrl(), "");
        return Settings.getAPIUrl() + id;
    } 
}