v4.0.0
BREAKING CHANGE
- PR #162 Update java http client dependency to 4.1.0 from 2.3.4
- BIG thanks to Diego Camargo for the pull request!
- The breaking change is that variables that were public are now private and accessable only via getters and setters
- The
Requestobject attributes are now only accessable through getters/setters request.methodis nowrequest.setMethod(string)request.endpointis nowrequest.setEndpoint(string)request.bodyis nowrequest.setBody(string)- The
Responseobject attributes are now only accessable through getters/setters response.statusCodeis nowresponse.getStatusCode()response.bodyis nowresponse.getBody()response.headersis nowresponse.getHeaders()- Adding a query parameter goes from:
Map<String,String> queryParams = new HashMap<String, String>();
request.addQueryParam("limit", "1");
queryParams.put("limit", "1");
request.queryParams = queryParams;to:
request.addQueryParam("limit", "1");