src/payload.c
static int
smp_fetch_req_len(struct proxy *px, struct session *s, void *l7, unsigned int opt,
                  const struct arg *args, struct sample *smp)
{
	if (!s || !s->req)
		return 0;

	smp->type = SMP_T_UINT;
	smp->data.uint = s->req->buf->i;
	smp->flags = SMP_F_VOLATILE | SMP_F_MAY_CHANGE;
	return 1;
}
/* return the number of bytes in the request buffer */
return the number of bytes in the request buffer
return the number of bytes in the request buffer
static int
smp_fetch_req_len(struct proxy *px, struct session *s, void *l7, unsigned int opt,
                  const struct arg *args, struct sample *smp)
{
	if (!s || !s->req)
		return 0;
	smp->type = SMP_T_UINT;
	smp->data.uint = s->req->buf->i;
	smp->flags = SMP_F_VOLATILE | SMP_F_MAY_CHANGE;
	return 1;
}
static int smp_fetch_req_len ( struct proxy * px , struct session * s , void * l7 , unsigned int opt , const struct arg * args , struct sample * smp ) { if ( ! s || ! s -> req ) return 0 ; smp -> type = SMP_T_UINT ; smp -> data . uint = s -> req -> buf -> i ; smp -> flags = SMP_F_VOLATILE | SMP_F_MAY_CHANGE ; return 1 ; }
return the number of bytes in the request buffer
return the number of bytes in the request buffer