NAME
Kubernetes::REST::HTTPRequest - HTTP request object
VERSION
version 1.001
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. Kubernetes::REST::AuthToken instance for authentication.
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).
SEE ALSO
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 <torsten@raudssus.de>
Jose Luis Martinez Torres <jlmartin@cpan.org> (JLMARTIN, original author, inactive)
COPYRIGHT AND LICENSE
This software is Copyright (c) 2019 by Jose Luis Martinez.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004