Slaughter::Transport::mojo - HTTP transport class.
This transport copes with fetching files and policies from a remote server using HTTP or HTTPS as a transport.
This transport is slightly different to the others, as each file is fetched on-demand, with no local filesystem access and no caching.
If HTTP Basic-Auth is required the appropriate details should be passed to slaughter with the "--username" & "--password" flags.
--username
--password
Create a new instance of this object.
Return the name of this transport.
Return whether this transport is available.
As we're pure-perl it should be always available if the Mojo::UserAgent module is present.
Mojo::UserAgent
Return the last error from the transport.
This is only set in "isAvailable".
Fetch the contents of a remote URL, using HTTP basic-auth if we should
Steve Kemp <steve@steve.org.uk>
Copyright (c) 2010-2015 by Steve Kemp. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.
To install App::Slaughter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Slaughter
CPAN shell
perl -MCPAN -e shell install App::Slaughter
For more information on module installation, please visit the detailed CPAN module installation guide.