zap-api-raku

A Raku module for the OWASP ZAP API.


Project maintained by khalidelboray Hosted on GitHub Pages — Theme by mattgraham

class Zap::Client


Basic Construction

use Zap::Client;

my $client = Zap::Client.new: :port(8081) #`( defaults to 8080 ) ,
                              :addr<192.168.1.120> #`( defaults to 127.0.0.1 ) ,
                              :format<XML> #`( Response Format -  defaults to JSON ) ,
                              :apikey<apikey123> ; # required

Attributes

Sending requests

my $res = $client.request('spider/view/fullResults',{scanId => 1});

# $res is a raw xml Str                               
# if the format is set to json , the response will be parsed by
# the client which uses JSON::fast

$res = $client.request('spider/view/fullResults',{scanId => 1},:format<JSON>);