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
2020-03-18 19:31:57 +01:00
parent 03914ce189
commit b7ff268e4e
9 changed files with 228 additions and 46 deletions

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