*.body VMOD arguments

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Jun 2 06:56:36 UTC 2022

Nils Goroll writes:

> But I can not remember if we ever talked about *.body as VMOD function/method
> arguments? If we did, please remind me.
> If not, I would suggest that we add those as a pointer to the respective
> objcore. Because VCL_BODY currently is typedef'd as const void *, we would
> need to change that and rewrite the existing VCC code for "VCL_BODY += ..." and
> "unset VCL_BODY", but I see no fundamental problem with that.

We already have a BODY type ?

	const struct type BODY[1] = {{
		.magic =                TYPE_MAGIC,
		.name =                 "BODY",
		.noindent =             1,

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-dev mailing list