Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lwp::membermixin(3) [centos man page]

LWP::MemberMixin(3)					User Contributed Perl Documentation				       LWP::MemberMixin(3)

NAME
LWP::MemberMixin - Member access mixin class SYNOPSIS
package Foo; require LWP::MemberMixin; @ISA=qw(LWP::MemberMixin); DESCRIPTION
A mixin class to get methods that provide easy access to member variables in the %$self. Ideally there should be better Perl language support for this. There is only one method provided: _elem($elem [, $val]) Internal method to get/set the value of member variable $elem. If $val is present it is used as the new value for the member variable. If it is not present the current value is not touched. In both cases the previous value of the member variable is returned. perl v5.16.3 2012-01-14 LWP::MemberMixin(3)

Check Out this Related Man Page

LWP::Debug(3)						User Contributed Perl Documentation					     LWP::Debug(3)

NAME
LWP::Debug - deprecated DESCRIPTION
LWP::Debug used to provide tracing facilities, but these are not used by LWP any more. The code in this module is kept around (undocumented) so that 3rd party code that happen to use the old interfaces continue to run. One useful feature that LWP::Debug provided (in an imprecise and troublesome way) was network traffic monitoring. The following section provide some hints about recommened replacements. Network traffic monitoring The best way to monitor the network traffic that LWP generates is to use an external TCP monitoring program. The Wireshark program (<http://www.wireshark.org/>) is higly recommended for this. Another approach it to use a debugging HTTP proxy server and make LWP direct all its traffic via this one. Call "$ua->proxy" to set it up and then just use LWP as before. For less precise monitoring needs just setting up a few simple handlers might do. The following example sets up handlers to dump the request and response objects that pass through LWP: use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->default_header('Accept-Encoding' => scalar HTTP::Message::decodable()); $ua->add_handler("request_send", sub { shift->dump; return }); $ua->add_handler("response_done", sub { shift->dump; return }); $ua->get("http://www.example.com"); SEE ALSO
LWP::UserAgent perl v5.16.2 2012-01-13 LWP::Debug(3)
Man Page

Featured Tech Videos