Carrot

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_409_conflict.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_410_gone.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_411_length_required.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_412_precondition_failed.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_413_request_entity_too_large.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_414_request_uri_too_long.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_415_unsupported_media_type.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_416_requested_range_not_satisfiable.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_417_expectation_failed.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_422_unprocessable_entity.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_423_locked.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_424_failed_dependency.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_425_reserved_for_webdav_advanced.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_426_upgrade_required.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_500_internal_server_error.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_501_not_implemented.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_502_bad_gateway.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_503_service_unavailable.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_504_gateway_timeout.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_505_http_version_not_supported.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_506_variant_also_negotiates.pl

MANIFEST  view on Meta::CPAN

968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_409_conflict.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_410_gone.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_411_length_required.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_412_precondition_failed.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_413_request_entity_too_large.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_414_request_uri_too_long.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_415_unsupported_media_type.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_416_requested_range_not_satisfiable.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_417_expectation_failed.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_422_unprocessable_entity.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_423_locked.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_424_failed_dependency.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_425_reserved_for_webdav_advanced.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_426_upgrade_required.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_500_internal_server_error.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_501_not_implemented.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_502_bad_gateway.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_503_service_unavailable.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_504_gateway_timeout.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_505_http_version_not_supported.pl
lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_506_variant_also_negotiates.pl

lib/Carrot/Continuity/Coordination/Episode/Synopsis./documentation/Synopsis-en.pod  view on Meta::CPAN

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
        sub evt_time_timeout    { print STDERR "T"; kill(&POSIX::SIGUSR1, $PROCESS_ID); }
        sub evt_time_boundary   { print STDERR "B"; }
        sub evt_signal_usr1     { print STDERR "S\n"; ${$_[0]} = 0; }
        sub evt_poll_edge_test1 { print STDERR "P$_[1]"; }
        }
 
=head1 DESCRIPTION
 
The purpose of the following example is to introduce Carrot::Continuity::Coordination::Episode with a fully functional piece of code. The class Carrot::Continuity::Coordination::Episode::Synopsis is shipped for this purpose only. Using the convenienc...
 
The example above should print '...................T.S' to the screen, with a one second delay between each output. Create and remove the file /tmp/any.txt to see a P. The USR1 signal sets the loop control to zero, effectively terminating the show. I...
 
The package Event_Demo is required, because Carrot::Continuity::Coordination::Episode is about instances, not classes. The $demo instance holds a loop control (a trivial scalar ref) and provides the callback methods (default names).
 
=head2 Public Interface
 
Punchy means, there is action upon a simple string. However, there is not much point in formatting and then (one subroutine call later) parsing a simple string. Instead, directly pass the values you have to the specific interfaces.
 
But there is nothing wrong with documenting the convenience interface. The first parameter is the instance to call back a hard-wired method name. The second parameter is recognized as follows:
 
=over 8

lib/Carrot/Continuity/Coordination/Episode/Synopsis./documentation/Synopsis-en.pod  view on Meta::CPAN

68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
=item * B<Wallclock time event> - 'at UNIT NUMBER UNIT NUMBER...'
 
The target is called once at the time specified in absolute form. Note that the unit comes first for wallclock events. Names for units are second, minute, hour, day, and year. No abreviation, no plural. Example: 'at year 2010 month 2 day 12 hour 12 m...
 
=item * B<Signal event> - 'SIGname'
 
The target is called each time the process receives the specified signal. For more about signals, see L<perlipc>. Example: 'SIGHUP'. Signals are not perfectly reliable with Carrot::Continuity::Coordination::Episode, try to avoid them.
 
 
=item * B<IO_Unblocked event> - file handle
 
The target is called when certain IO operations will not block. Mainly two individual methods are called on the instance: evt_io_unblocked_(read|write). You need to store the target instance, so that you can control the type of event to be delivered....
 
=item * B<Generic event> - anything
 
A placeholder, which is too generic to be useful. :)
 
=back
 
=head1 AUTHOR
 
Winfried Trumper E<lt>pub+perl(a)wt.tuxomania.netE<gt>

lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload.pl  view on Meta::CPAN

75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
sub set_414_request_uri_too_long;
sub is_414_request_uri_too_long;
sub set_415_unsupported_media_type;
sub is_415_unsupported_media_type;
sub set_416_requested_range_not_satisfiable;
sub is_416_requested_range_not_satisfiable;
sub set_417_expectation_failed;
sub is_417_expectation_failed;
sub set_422_unprocessable_entity;
sub is_422_unprocessable_entity;
sub set_423_locked;
sub is_423_locked;
sub set_424_failed_dependency;
sub is_424_failed_dependency;
sub set_425_reserved_for_webdav_advanced;
sub is_425_reserved_for_webdav_advanced;
sub set_426_upgrade_required;
sub is_426_upgrade_required;
sub set_500_internal_server_error;
sub is_500_internal_server_error;
sub set_501_not_implemented;
sub is_501_not_implemented;

lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/is_423_locked.pl  view on Meta::CPAN

1
2
3
4
5
6
7
8
use strict;
sub is_423_locked
{
        return(${$_[0]} eq '423');
}
return(1);

lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code./autoload/set_423_locked.pl  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
use strict;
sub set_423_locked
{
        ${$_[0]} = '423';
        return;
}
return(1);

lib/Carrot/Personality/Valued/Internet/Protocol/HTTP/Status_Code/clip.txt  view on Meta::CPAN

834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
sub is_422_unprocessable_entity
# /type method
# /effect ""
# //parameters
# //returns
#       ?
{
        return(${$_[THIS]} == HTTP_STATUS_CODE_422_UNPROCESSABLE_ENTITY);
}
 
sub set_423_locked
# /type method
# /effect ""
# //parameters
# //returns
#       ?
{
        ${$_[THIS]} = HTTP_STATUS_CODE_423_LOCKED;
        return;
}
 
sub is_423_locked
# /type method
# /effect ""
# //parameters
# //returns
#       ?
{
        return(${$_[THIS]} == HTTP_STATUS_CODE_423_LOCKED);
}
 
sub set_424_failed_dependency



( run in 0.483 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )