mirror of
https://github.com/anikeen-com/yaac.git
synced 2026-03-14 06:06:14 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user