Browsermob-Proxy

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
   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

418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
=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

363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
An 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 )