NAME
Kubernetes::REST::HTTPRequest - HTTP request object
VERSION
version 1.107
SYNOPSIS
use Kubernetes::REST::HTTPRequest;
my $req = Kubernetes::REST::HTTPRequest->new(
method => 'GET',
url => 'https://kubernetes.local:6443/api/v1/pods',
headers => { 'Authorization' => 'Bearer token' },
);
DESCRIPTION
Internal HTTP request object used by Kubernetes::REST.
server
Optional. Kubernetes::REST::Server instance for building the full URL.
credentials
Optional. Credentials for authentication: a Kubernetes::REST::AuthToken, a Kubernetes::REST::AuthTokenFile, or any other object with a token() method.
authenticate
Add authentication header from the credentials attribute.
uri
The URI path (e.g., /api/v1/pods).
method
The HTTP method (GET, POST, PUT, DELETE, PATCH, etc.).
url
The complete URL. If not provided, constructed from server and uri.
headers
Hashref of HTTP headers.
parameters
Hashref of query parameters.
content
The request body content (typically JSON). Kubernetes::REST sets this as already UTF-8-encoded bytes; treat it as opaque and send it on the wire unchanged. See "Encoding contract" in Kubernetes::REST::Role::IO.
SEE ALSO
Kubernetes::REST - Main API client
Kubernetes::REST::HTTPResponse - Response object
Kubernetes::REST::Role::IO - IO interface
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/pplu/kubernetes-rest/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.
AUTHORS
Torsten Raudssus <getty@cpan.org>
Jose Luis Martinez Torres <jlmartin@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2019-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004