zeek/auxil/spicy/doc/programming/examples/_parse-sink.spicy
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

20 lines
368 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
public type A = unit {
on %init { self.b.connect(new B); }
length: uint8;
data: bytes &size=self.length { self.b.write($$); }
on %done { print "A", self; }
sink b;
};
public type B = unit {
: /GET /;
path: /[^\n]+/;
on %done { print "B", self; }
};