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

This commit is contained in:
Edwin Kempin
2016-05-30 09:51:40 +00:00
committed by Gerrit Code Review

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);
}