NAME
HTTP::Promise::Headers::ExpectCT - Expect-CT Header Field
SYNOPSIS
use HTTP::Promise::Headers::ExpectCT;
my $expect = HTTP::Promise::Headers::ExpectCT->new ||
die( HTTP::Promise::Headers::ExpectCT->error, "\n" );
$h->max_age(86400);
$h->report_uri( 'https://foo.example.com/report' );
$h->enforce(1);
VERSION
v0.1.0
DESCRIPTION
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.
For example:
Expect-CT: max-age=86400, enforce, report-uri="https://foo.example.com/report"
METHODS
as_string
Returns a string representation of the Expect-CT
object.
enforce
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.
max_age
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.
params
Returns the array object used by this header field object containing all the properties set.
properties
Returns the hash object used as a repository of properties.
report_uri
This is optional.
This takes an URI as a value. The URI where the user agent should report Expect-CT
failures.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
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 & LICENSE
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.