src/proto_http.c
static int
smp_fetch_hdr_val(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                  const struct arg *args, struct sample *smp)
{
	int ret = smp_fetch_hdr(px, l4, l7, opt, args, smp);

	if (ret > 0) {
		smp->type = SMP_T_UINT;
		smp->data.uint = strl2ic(smp->data.str.str, smp->data.str.len);
	}

	return ret;
}
/* Fetch an HTTP header's integer value. The integer value is returned. It
 * takes a mandatory argument of type string and an optional one of type int
 * to designate a specific occurrence. It returns an unsigned integer, which
 * may or may not be appropriate for everything.
 */
Fetch an HTTP header's integer value. The integer value is returned. It
takes a mandatory argument of type string and an optional one of type int
to designate a specific occurrence. It returns an unsigned integer, which
may or may not be appropriate for everything.
Fetch an HTTP header ' s integer value . The integer value is returned . It takes a mandatory argument of type string and an optional one of type int to designate a specific occurrence . It returns an unsigned integer which may or may not be appropriate for everything .
static int
smp_fetch_hdr_val(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                  const struct arg *args, struct sample *smp)
{
	int ret = smp_fetch_hdr(px, l4, l7, opt, args, smp);
	if (ret > 0) {
		smp->type = SMP_T_UINT;
		smp->data.uint = strl2ic(smp->data.str.str, smp->data.str.len);
	}
	return ret;
}
static int smp_fetch_hdr_val ( struct proxy * px , struct session * l4 , void * l7 , unsigned int opt , const struct arg * args , struct sample * smp ) { int ret = smp_fetch_hdr ( px , l4 , l7 , opt , args , smp ) ; if ( ret > 0 ) { smp -> type = SMP_T_UINT ; smp -> data . uint = strl2ic ( smp -> data . str . str , smp -> data . str . len ) ; } return ret ; }
Fetch an HTTP header's integer value.
Fetch an HTTP header ' s integer value .