bin/varnishd/cache/cache_vrt_var.c
static void
vrt_do_strands(VRT_CTX, struct http *hp, int fld,
    const char *err, const char *str, VCL_STRANDS s)
{
	const char *b;

	CHECK_OBJ_NOTNULL(hp, HTTP_MAGIC);

	b = VRT_StrandsWS(hp->ws, str, s);
	if (b == NULL) {
		VRT_fail(ctx, "Workspace overflow (%s)", err);
		WS_MarkOverflow(hp->ws);
		return;
	}
	if (*b == '\0') {
		VRT_fail(ctx, "Setting %s to empty string", err);
		return;
	}
	http_SetH(hp, fld, b);
}
/*--------------------------------------------------------------------
 * VRT variables relating to first line of HTTP/1.1 req/resp
 */
VRT variables relating to first line of HTTP/1.1 req/resp
VRT variables relating to first line of HTTP / 1 . 1 req / resp
static void
vrt_do_strands(VRT_CTX, struct http *hp, int fld,
    const char *err, const char *str, VCL_STRANDS s)
{
	const char *b;
	CHECK_OBJ_NOTNULL(hp, HTTP_MAGIC);
	b = VRT_StrandsWS(hp->ws, str, s);
	if (b == NULL) {
		VRT_fail(ctx, "Workspace overflow (%s)", err);
		WS_MarkOverflow(hp->ws);
		return;
	}
	if (*b == '\0') {
		VRT_fail(ctx, "Setting %s to empty string", err);
		return;
	}
	http_SetH(hp, fld, b);
}
static void vrt_do_strands ( VRT_CTX , struct http * hp , int fld , const char * err , const char * str , VCL_STRANDS s ) { const char * b ; CHECK_OBJ_NOTNULL ( hp , HTTP_MAGIC ) ; b = VRT_StrandsWS ( hp -> ws , str , s ) ; if ( b == NULL ) { VRT_fail ( ctx , " " , err ) ; WS_MarkOverflow ( hp -> ws ) ; return ; } if ( * b == ' \0 ' ) { VRT_fail ( ctx , " " , err ) ; return ; } http_SetH ( hp , fld , b ) ; }
VRT variables relating to first line of HTTP/1.1 req/resp
VRT variables relating to first line of HTTP / 1 . 1 req / resp