Net::Minecraft::Role::HTTP - Base class for Minecraft HTTP things.
HTTP
version 0.002000
This section describes arguments that may be optionally passed to ->new(), but as of the time of this writing, none are explicitly required, and are offered only to give leverage to strange use cases ( and tests )
->new()
my $instance = _SOME_CLASS_->new( user_agent => ... , http_headers => { ... }, http_engine => HTTP::Tiny->new(), );
user_agent
The User Agent to self-describe over HTTP
type : String default : "Net::Minecraft::Login/" . VERSION
http_headers
Standard Headers that will be injected in each request
type : Hash[ string => string ] default : { 'Content-Type' => 'application/x-www-form-urlencoded' }
http_engine
Low-Level HTTP Transfer Agent.
type : Object[ =~ HTTP::Tiny ] default : An HTTP::Tiny instance.
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2013 by Kent Fredric <kentnl@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::Minecraft::Login, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Minecraft::Login
CPAN shell
perl -MCPAN -e shell install Net::Minecraft::Login
For more information on module installation, please visit the detailed CPAN module installation guide.