HTTP-Promise

 view release on metacpan or  search on metacpan

t/03.headers.t  view on Meta::CPAN

    our $DEBUG = exists( $ENV{AUTHOR_TESTING} ) ? $ENV{AUTHOR_TESTING} : 0;
};

use strict;
use warnings;

BEGIN
{
    use ok( 'HTTP::Promise::Headers' );
};

my( $h, $h2, $rv );
$h = HTTP::Promise::Headers->new;
isa_ok( $h, ['HTTP::Promise::Headers'] );
# for m in `egrep -E '^=head2 (\w+)' ./lib/HTTP/Promise/Headers.pm| awk '{ print $2 }'`; do echo "can_ok( \$h => '$m' );"; done
# perl -lnE '/^sub (?!init|[A-Z]|_)/ and say "can_ok( \$h, \''", [split(/\s+/, $_)]->[1], "\'' );"' ./lib/HTTP/Promise/Headers.pm
can_ok( $h => 'new' );
can_ok( $h => 'add' );
can_ok( $h => 'as_string' );
can_ok( $h => 'authorization_basic' );
can_ok( $h => 'boundary' );
can_ok( $h => 'charset' );
can_ok( $h => 'clear' );
can_ok( $h => 'clone' );
can_ok( $h => 'content_type_charset' );
can_ok( $h => 'decode_filename' );
can_ok( $h => 'debug' );
can_ok( $h => 'default_type' );
can_ok( $h => 'delete' );
can_ok( $h => 'encode_filename' );
can_ok( $h => 'error' );
can_ok( $h => 'exists' );
can_ok( $h => 'get' );
can_ok( $h => 'header' );
can_ok( $h => 'header_field_names' );
can_ok( $h => 'init_header' );
can_ok( $h => 'mime_attr' );
can_ok( $h => 'mime_encoding' );
can_ok( $h => 'mime_type' );
can_ok( $h => 'multipart_boundary' );
can_ok( $h => 'print' );
can_ok( $h => 'proxy_authorization_basic' );
can_ok( $h => 'push_header' );
can_ok( $h => 'recommended_filename' );
can_ok( $h => 'remove_content_headers' );
can_ok( $h => 'remove_header' );
can_ok( $h => 'replace' );
can_ok( $h => 'request_timeout' );
can_ok( $h => 'scan' );
can_ok( $h => 'type' );
can_ok( $h => 'accept' );
can_ok( $h => 'accept_charset' );
can_ok( $h => 'accept_encoding' );
can_ok( $h => 'accept_language' );
can_ok( $h => 'accept_patch' );
can_ok( $h => 'accept_post' );
can_ok( $h => 'accept_ranges' );
can_ok( $h => 'acceptables' );
can_ok( $h => 'age' );
can_ok( $h => 'allow' );
can_ok( $h => 'allow_credentials' );
can_ok( $h => 'allow_headers' );
can_ok( $h => 'allow_methods' );
can_ok( $h => 'allow_origin' );
can_ok( $h => 'alt_svc' );
can_ok( $h => 'alternate_server' );
can_ok( $h => 'authorization' );
can_ok( $h => 'cache_control' );
can_ok( $h => 'clear_site_data' );
can_ok( $h => 'connection' );
can_ok( $h => 'content_disposition' );
can_ok( $h => 'content_encoding' );
can_ok( $h => 'content_is_text' );
can_ok( $h => 'content_is_html' );
can_ok( $h => 'content_is_json' );
can_ok( $h => 'content_is_xhtml' );
can_ok( $h => 'content_is_xml' );
can_ok( $h => 'content_language' );
can_ok( $h => 'content_length' );
can_ok( $h => 'content_location' );
can_ok( $h => 'content_range' );
can_ok( $h => 'content_security_policy' );
can_ok( $h => 'content_security_policy_report_only' );
can_ok( $h => 'content_type' );
can_ok( $h => 'cross_origin_embedder_policy' );
can_ok( $h => 'cross_origin_opener_policy' );
can_ok( $h => 'cross_origin_resource_policy' );
can_ok( $h => 'cspro' );
can_ok( $h => 'date' );
can_ok( $h => 'device_memory' );
can_ok( $h => 'digest' );
can_ok( $h => 'dnt' );
can_ok( $h => 'early_data' );
can_ok( $h => 'etag' );
can_ok( $h => 'expect' );
can_ok( $h => 'expect_ct' );
can_ok( $h => 'expires' );
can_ok( $h => 'expose_headers' );
can_ok( $h => 'forwarded' );
can_ok( $h => 'from' );
can_ok( $h => 'host' );
can_ok( $h => 'if_match' );
can_ok( $h => 'if_modified_since' );
can_ok( $h => 'if_none_match' );
can_ok( $h => 'if_range' );
can_ok( $h => 'if_unmodified_since' );
can_ok( $h => 'keep_alive' );
can_ok( $h => 'last_modified' );
can_ok( $h => 'link' );
can_ok( $h => 'location' );
can_ok( $h => 'max_age' );
can_ok( $h => 'nel' );
can_ok( $h => 'origin' );
can_ok( $h => 'proxy' );
can_ok( $h => 'proxy_authenticate' );
can_ok( $h => 'proxy_authorization' );
can_ok( $h => 'range' );
can_ok( $h => 'referer' );
can_ok( $h => 'referrer' );
can_ok( $h => 'referrer_policy' );
can_ok( $h => 'request_headers' );



( run in 1.252 second using v1.01-cache-2.11-cpan-e1769b4cff6 )