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
Request
object attributes are now only accessable through getters/setters request.method
is nowrequest.setMethod(string)
request.endpoint
is nowrequest.setEndpoint(string)
request.body
is nowrequest.setBody(string)
- The
Response
object attributes are now only accessable through getters/setters response.statusCode
is nowresponse.getStatusCode()
response.body
is nowresponse.getBody()
response.headers
is 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");