RestSession: Add helper method to send HEAD request to REST endpoint

Change-Id: I3ede7fa365e55157cba6732f1ed22d10f0a447c9
This commit is contained in:
David Pursehouse
2016-05-24 12:04:24 +09:00
parent d3e030bb1b
commit dadbff5e3a

View File

@@ -54,6 +54,10 @@ public class RestSession extends HttpSession {
return execute(get);
}
public RestResponse head(String endPoint) throws IOException {
return execute(Request.Head(url + "/a" + endPoint));
}
public RestResponse put(String endPoint) throws IOException {
return put(endPoint, null);
}