PHP 클래스 Kelunik\Acme\Verifiers\Http01

파일 보기 프로젝트 열기: kelunik/acme

공개 메소드들

메소드 설명
__construct ( Amp\Artax\HttpClient $client = null ) Http01 constructor.
verifyChallenge ( string $domain, string $token, string $payload ) : Amp\Promise Verifies a HTTP-01 challenge.

비공개 메소드들

메소드 설명
doVerifyChallenge ( string $domain, string $token, string $payload ) : Generator Verifies a HTTP-01 challenge.

메소드 상세

__construct() 공개 메소드

Http01 constructor.
public __construct ( Amp\Artax\HttpClient $client = null )
$client Amp\Artax\HttpClient HTTP client to use, otherwise a default client will be used

verifyChallenge() 공개 메소드

Can be used to verify a challenge before requesting validation from a CA to catch errors early.
public verifyChallenge ( string $domain, string $token, string $payload ) : Amp\Promise
$domain string domain to verify
$token string challenge token
$payload string expected payload
리턴 Amp\Promise resolves to null