The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Slaughter::Transport::mojo - HTTP transport class.

SYNOPSIS

This transport copes with fetching files and policies from a remote server using HTTP or HTTPS as a transport.

DESCRIPTION

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.

new

Create a new instance of this object.

name

Return the name of this transport.

isAvailable

Return whether this transport is available.

As we're pure-perl it should be always available if the Mojo::UserAgent module is present.

error

Return the last error from the transport.

This is only set in "isAvailable".

fetchContents

Fetch the contents of a remote URL, using HTTP basic-auth if we should

AUTHOR

Steve Kemp <steve@steve.org.uk>

LICENSE

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.