The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Dochazka::CLI::HTTP - HTTP for Dochazka command line client

VERSION

Version 0.064

SYNOPSIS

    use App::Dochazka::CLI::HTTP qw( send_req );

    my $status = send_req( 'GET', 'employee/current' );

EXPORTS

PACKAGE VARIABLES

FUNCTIONS

init_ua

Initialize the LWP::UserAgent singleton object.

Return the cookie_jar associated with our user agent.

send_req

Send a request to the server, get the response, convert it from JSON and bless it into a status object.