diff --git a/README.md b/README.md index 6f10e89..512ec43 100644 --- a/README.md +++ b/README.md @@ -333,6 +333,15 @@ from the server. (default: ${downloadTaskDir}/etags.json)<
An optional request body. As gradle-download-task is meant for downloading and not for uploading, only simple strings are supported. (optional)
+
validateStatus
+
An optional status code validator. By default, a download fails if the HTTP +status code is less than 200 or greater than 299 and does not equal 304 (Not +Modified). This behavior can be customized by providing a validator. This +function receives an integer (the HTTP status code) and either returns +true if the status code should be accepted or false +if it should be rejected (i.e. if the download should fail). Examples: +validateStatus { it < 500 } or validateStatus { true }. +(optional)
Verify task