NAME

WWW::Hetzner::HTTPRequest - HTTP request object for Hetzner API

VERSION

version 0.100

SYNOPSIS

use WWW::Hetzner::HTTPRequest;

my $req = WWW::Hetzner::HTTPRequest->new(
    method  => 'GET',
    url     => 'https://api.hetzner.cloud/v1/servers',
    headers => { Authorization => 'Bearer token' },
);

DESCRIPTION

Transport-independent HTTP request object. Used by WWW::Hetzner::Role::HTTP to build requests that are then executed by an WWW::Hetzner::Role::IO backend.

method

The HTTP method (GET, POST, PUT, DELETE).

url

The complete request URL.

headers

Hashref of HTTP headers.

content

The request body content (JSON string). Use has_content to check presence.

SEE ALSO

WWW::Hetzner::HTTPResponse, WWW::Hetzner::Role::IO

SUPPORT

Issues

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

IRC

Join #kubernetes on irc.perl.org or message Getty directly.

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.