lib/Net/API/REST/Response.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Net/API/REST/Request.pm ↑ Summary lib/Net/API/REST/Status.pm »
1 # -*- perl -*-
2 ##----------------------------------------------------------------------------
3 ## REST API Framework - ~/lib/Net/API/REST/Response.pm
4 ## Version v1.0.0
5 ## Copyright(c) 2022 DEGUEST Pte. Ltd.
6 ## Author: Jacques Deguest <jack@deguest.jp>
7 ## Created 2019/09/01
8 ## Modified 2023/06/10
9 ## All rights reserved
10 ##
11 ## This program is free software; you can redistribute it and/or modify it
12 ## under the same terms as Perl itself.
13 ##----------------------------------------------------------------------------
14 package Net::API::REST::Response;
15 BEGIN
16 {
17 1 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶ use common::sense;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶ use parent qw( Apache2::API::Response );
Subroutine BEGIN: called CC=1 SCAR=0.0
21 use vars qw( $VERSION );
22 our $VERSION = 'v1.0.0';
23 };
24  
25 use strict;
26 use warnings;
27  
28 # sub init is inherited
29  
30 sub request { return( shift->_set_get_object( 'request', 'Net::API::REST::Request', @_ ) ); }
31  
32 1;
33 # NOTE: POD
34 __END__
35  
36 =encoding utf8
37  
38 =head1 NAME
39  
40 Net::API::REST::Response - Apache2 Outgoing Response Access and Manipulation
41  
42 =head1 SYNOPSIS
43  
44 use Net::API::REST::Response;
45 ## $r is the Apache2::RequestRec object
46 my $req = Net::API::REST::Request->new( request => $r, debug => 1 );
47 ## or, to test it outside of a modperl environment:
48 my $req = Net::API::REST::Request->new( request => $r, debug => 1, checkonly => 1 );
49  
50 =head1 VERSION
51  
52 v1.0.0
53  
54 =head1 DESCRIPTION
55  
56 The purpose of this module is to provide an easy access to various method to process and manipulate outgoing response.
57  
58 This module inherits all of its methods from L<Apache2::API::Response>. Please check its documentation directly.
59  
60 For its alter ego to manipulate incoming http request, use the L<Net::API::REST::Request> module.
61  
62 =head1 AUTHOR
63  
64 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
65  
66 =head1 SEE ALSO
67  
68 L<Apache2::API::Response>, L<Apache2::API::Request>, L<Apache2::API>
69  
70 =head1 COPYRIGHT & LICENSE
71  
72 Copyright (c) 2018-2023 DEGUEST Pte. Ltd.
73  
74 You can use, copy, modify and redistribute this package and associated
75 files under the same terms as Perl itself.
76  
77 =cut
« lib/Net/API/REST/Request.pm ↑ Summary lib/Net/API/REST/Status.pm »