NAME

WWW::Bund::HTTPRequest - Transport-independent HTTP request object

VERSION

version 0.001

SYNOPSIS

use WWW::Bund::HTTPRequest;

my $req = WWW::Bund::HTTPRequest->new(
    method  => 'GET',
    url     => 'https://example.com/api',
    headers => { Authorization => 'Bearer TOKEN' },
    content => $json_body,  # optional
);

DESCRIPTION

Simple immutable HTTP request object used as input to WWW::Bund::Role::IO implementations. Transport-independent representation of an HTTP request.

method

HTTP method (GET, POST, etc.). Required.

url

Full URL including scheme, host, path, and query string. Required.

headers

HashRef of HTTP headers. Defaults to empty HashRef.

content

Request body content (for POST, PUT, etc.). Optional.

Use has_content predicate to check if content is set.

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.