Improved http validation with exponential backoff

Added documentation
Simplified HTTP validation flow (no longer need challenge to get file contents)
Updated README.md
This commit is contained in:
peterbakker committed 2020-03-18 19:31:57 +01:00
1 parent 03914ce189
commit b7ff268e4e
9 files changed
+228 -46

No files matched your search

+7 -1
View File
@@ -15,7 +15,11 @@ class File
*/
protected $contents;
/**
* File constructor.
* @param string $filename
* @param string $contents
*/
public function __construct(string $filename, string $contents)
{
$this->contents = $contents;
@@ -23,6 +27,7 @@ class File
}
/**
* Return the filename for HTTP validation
* @return string
*/
public function getFilename(): string
@@ -31,6 +36,7 @@ class File
}
/**
* Return the file contents for HTTP validation
* @return string
*/
public function getContents(): string