NAME

WWW::Bund::Role::IO - Interface role for pluggable HTTP backends

VERSION

version 0.001

SYNOPSIS

package My::HTTP::Backend;
use Moo;
with 'WWW::Bund::Role::IO';

sub call {
    my ($self, $request) = @_;
    # Execute HTTP request
    # Return WWW::Bund::HTTPResponse
}

DESCRIPTION

Role defining the interface for HTTP backend implementations. Allows plugging in alternative HTTP clients (async, mocked, etc.) by implementing the call method.

The default implementation is WWW::Bund::LWPIO using LWP::UserAgent.

REQUIRED METHODS

call

my $response = $io->call($request);

Execute an HTTP request. Takes WWW::Bund::HTTPRequest, returns WWW::Bund::HTTPResponse.

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-bund/issues.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <torsten@raudssus.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.