| 1 | package Power::Outlet::Common::IP::HTTPS; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use base qw{Power::Outlet::Common::IP::HTTP}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $VERSION = '0.54'; | |
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Power::Outlet::Common::IP::HTTPS - Power::Outlet base class for HTTPS power outlet | ||
| 11 | |||
| 12 | =head1 SYNOPSIS | ||
| 13 | |||
| 14 | use base qw{Power::Outlet::Common::IP::HTTPS}; | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | Power::Outlet::Common::IP::HTTPS is a package for controlling and querying an HTTPS-based network attached power outlet. | ||
| 19 | |||
| 20 | =head1 USAGE | ||
| 21 | |||
| 22 | use base qw{Power::Outlet::Common::IP::HTTPS}; | ||
| 23 | |||
| 24 | =head1 METHODS | ||
| 25 | |||
| 26 | =head2 url | ||
| 27 | |||
| 28 | Returns a configured L<URI::http> object | ||
| 29 | |||
| 30 | =head1 PROPERTIES | ||
| 31 | |||
| 32 | All properties from Power::Outlet::Common::IP::HTTP with these default differences | ||
| 33 | |||
| 34 | =head2 http_scheme | ||
| 35 | |||
| 36 | Set and returns the http_scheme property | ||
| 37 | |||
| 38 | Default: https | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | 0 | ▶ | sub _http_scheme_default {'https'}; #see Power::Outlet::Common::IP::HTTP |
|
Subroutine
_http_scheme_default: not called CC=1 SCAR=6.9
| |||
| 43 | |||
| 44 | =head2 port | ||
| 45 | |||
| 46 | Set and returns the port property | ||
| 47 | |||
| 48 | Default: 443 | ||
| 49 | |||
| 50 | =cut | ||
| 51 | |||
| 52 | 0 | ▶ | sub _port_default {'443'}; #see Power::Outlet::Common::IP |
|
Subroutine
_port_default: not called CC=1 SCAR=6.9
| |||
| 53 | |||
| 54 | 0 | ▶ | sub _http_path_default {'/'}; #see Power::Outlet::Common::IP::HTTP |
|
Subroutine
_http_path_default: not called CC=1 SCAR=6.9
| |||
| 55 | |||
| 56 | =head1 BUGS | ||
| 57 | |||
| 58 | Please log on RT and send an email to the author. | ||
| 59 | |||
| 60 | =head1 SUPPORT | ||
| 61 | |||
| 62 | DavisNetworks.com supports all Perl applications including this package. | ||
| 63 | |||
| 64 | =head1 AUTHOR | ||
| 65 | |||
| 66 | Michael R. Davis | ||
| 67 | CPAN ID: MRDVT | ||
| 68 | DavisNetworks.com | ||
| 69 | |||
| 70 | =head1 COPYRIGHT | ||
| 71 | |||
| 72 | This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. | ||
| 73 | |||
| 74 | The full text of the license can be found in the LICENSE file included with this module. | ||
| 75 | |||
| 76 | =head1 SEE ALSO | ||
| 77 | |||
| 78 | L<URI>, L<HTTP::Tiny> | ||
| 79 | |||
| 80 | =cut | ||
| 81 | |||
| 82 | 1 | 1; | |