Skip to content

1.6.0.6 Method chaining support for HttpClient

Compare
Choose a tag to compare
@michaelgantman michaelgantman released this 13 Feb 12:46
· 15 commits to master since this release

Added method chaining support for HttpClient for header setter methods. so now methods clearAllRequestProperties(), removeRequestProperty(), setContentType() and setRequestHeader() return the instance of HttpClient so they could be chained. So now it is possible to write:

new HttpClient()
.setContentType(...)
.setRequestHeader(...)
.setRequestHeader(...)
.setRequestHeader(...)
.sendHttpRequest(...);