Skip to content

Commit b0d518c

Browse files
committed
add head method to Client
1 parent 8f71829 commit b0d518c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/qiniu/http/Client.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ private Response patch(String url, RequestBody body, StringMap headers) throws Q
394394
return send(requestBuilder, headers);
395395
}
396396

397+
public Response head(String url, StringMap headers) throws QiniuException {
398+
Request.Builder requestBuilder = new Request.Builder().url(url).head();
399+
return send(requestBuilder, headers);
400+
}
397401

398402
public Response send(final Request.Builder requestBuilder, StringMap headers) throws QiniuException {
399403
if (headers != null) {

0 commit comments

Comments
 (0)