HTTP::Promise::Headers::ExpectCT - Expect-CT Header Field
my $expect = HTTP::Promise::Headers::ExpectCT->new ||
die( HTTP::Promise::Headers::ExpectCT->error, "\n" );
$h->report_uri( 'https://foo.example.com/report' );
The following is an extract from Mozilla documentation.
The Expect-CT header lets sites opt in to reporting and/or enforcement of Certificate Transparency requirements, to prevent the use of misissued certificates for that site from going unnoticed.
Expect-CT: max-age=86400, enforce, report-uri="https://foo.example.com/report"
Returns a string representation of the Expect-CT object.
This is optional.
This is a boolean property and takes a true or false value. If true, the property is set, and if false it is removed.
Signals to the user agent that compliance with the Certificate Transparency policy should be enforced (rather than only reporting compliance) and that the user agent should refuse future connections that violate its Certificate Transparency policy.
The number of seconds after reception of the Expect-CT header field during which the user agent should regard the host of the received message as a known Expect-CT host.
Returns the array object used by this header field object containing all the properties set.
Returns the hash object used as a repository of properties.
This takes an URI as a value. The URI where the user agent should report Expect-CT failures.
Jacques Deguest <email@example.com>
See also rfc draft and Mozilla documentation
HTTP::Promise, HTTP::Promise::Request, HTTP::Promise::Response, HTTP::Promise::Message, HTTP::Promise::Entity, HTTP::Promise::Headers, HTTP::Promise::Body, HTTP::Promise::Body::Form, HTTP::Promise::Body::Form::Data, HTTP::Promise::Body::Form::Field, HTTP::Promise::Status, HTTP::Promise::MIME, HTTP::Promise::Parser, HTTP::Promise::IO, HTTP::Promise::Stream, HTTP::Promise::Exception
Copyright(c) 2022 DEGUEST Pte. Ltd.
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::Promise, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.