NAME
Slaughter::Transport::http - 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.
AUTHOR
Steve
--
http://www.steve.org.uk/
LICENSE
Copyright (c) 2012-2013 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.
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 LWP::UserAgent
module is available.
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