Browsermob-Proxy
view release on metacpan or search on metacpan
56789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
standalone module
0.16 2015-08-17
- Add closest match's params to
return
signature of
cmp_request_params
0.1501 2015-05-21
- Fix bug where find_open_port could
return
outside the range
0.15 2015-05-21
- Add endpoint
for
managing timeouts on proxies
- Check
for
$gd
during DEMOLISH to handle warnings properly
- Convert more tests over to Test::Spec
0.14 2015-05-07
- Add negative assets on request parameters
0.13 2015-05-01
- Add endpoint
for
filtering requests via LittleProxy
0.12 2015-02-19
- Convince cmp_request_params to take a custom user
sub
for
comparison
- Add utility functions required
for
parameter: :parameter cmp
- Bug fix
for
using `
keys
` on a
ref
instead of a hash
0.10 2015-02-17
- Return missing params
when
cmp_request_params is called in list
context
0.09 2015-02-15
- Add
package
for
comparing request parameters
- Poorly clean up warnings during destruction. This is still broken,
though :(
0.08 2014-07-25
- Clean up various documentation points
- Add convenience fn
for
generating firefox preferences
for
proxy
0.05 2014-05-24
- Implement basic auth endpoint
0.04 2014-04-21
- selenium_proxy method automatically invokes new_har
unless
passed a
truthy value
0.03 2014-04-11
- Added selenium_proxy method to pass to Selenium::Remote::Driver
0.02 2014-04-09
- `har` method now returns a json of the HAR instead of a
lib/Browsermob/Proxy.pm view on Meta::CPAN
418419420421422423424425426427428429430431432433434435436437438=head2 new_har
After creating a proxy, C<new_har> creates a new HAR attached to the
proxy and returns the HAR content if there was a previous one. If no
argument is passed, the initial page ref will be "Page 1"; you can
also pass a string to choose your own initial page ref.
$proxy->new_har;
$proxy->new_har('Google');
This convenience method is just a helper around the actual endpoint
method C</create_new_har>; it uses the defaults of not capturing
headers, request/response bodies, or binary content. If you'd like to
capture those items, you can use C<create_new_har> as follows:
$proxy->create_new_har(
payload => {
initialPageRef => 'payload is optional'
},
captureHeaders => 'true',
captureContent => 'true',
lib/Browsermob/Proxy/CompareParams.pm view on Meta::CPAN
363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395An example may help make this clear:
say
you assert the following
hashref
$assert
= {
query
=>
'param'
,
query2
=>
':query'
};
and your HAR records a request to a URL
with
the following params:
C</endpoint?query=param
&query2
=param>. We'll
return
you a new
C<
$assert
>:
$assert
= {
query
=>
'param'
,
query2
=>
'param'
};
=head2 collect_query_param_keys
Given a HAR, or a the entries array of a HAR, we'll return a list of
all of the keys that were used in any of the query parameters. So if
your HAR contains a call to C</endpoint?example1&example2> and another
call to C</endpoint?example2&example3>, we'll return C<[ qw/ example1
example2 example3 ]>.
=head1 SEE ALSO
Please see those modules/websites for more information related to this module.
=over 4
=item *
( run in 0.505 second using v1.01-cache-2.11-cpan-49f99fa48dc )