Skip to content

Commit 2d2a3c9

Browse files
committed
Add Javadoc for the newly added uploadFile method.
Signed-off-by: Robin Verduijn <robinverduijn.github@gmail.com>
1 parent 7b30b98 commit 2d2a3c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/io/jenkins/plugins/httpclient/RobustHTTPClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,12 @@ public void uploadFile(File f, URL url, TaskListener listener) throws IOExceptio
242242
uploadFile(f, null, url, listener);
243243
}
244244

245+
/**
246+
* Upload a file to a URL with a specific content type.
247+
*
248+
* @param f the file to upload
249+
* @param contentType the content type for the specified file
250+
*/
245251
public void uploadFile(File f, String contentType, URL url, TaskListener listener) throws IOException, InterruptedException {
246252
connect("upload", "upload " + f + " to " + sanitize(url), client -> {
247253
HttpPut put = new HttpPut(url.toString());

0 commit comments

Comments
 (0)