int meth;
struct http_txn *txn;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 0);
char *ptr;
int len;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
char *ptr;
int len;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
char *ptr;
int len;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
struct channel *chn = SMP_REQ_CHN(smp);
struct http_txn *txn;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct buffer *temp;
struct http_txn *txn;
struct buffer *temp;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct buffer *temp;
struct channel *chn = SMP_REQ_CHN(smp);
struct buffer *temp;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
int32_t pos;
{
struct channel *chn = SMP_REQ_CHN(smp);
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
int32_t pos;
{
struct channel *chn = SMP_REQ_CHN(smp);
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
int32_t pos;
struct channel *chn = SMP_REQ_CHN(smp);
struct http_txn *txn;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
struct http_txn *txn;
struct sockaddr_storage addr;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
struct http_txn *txn;
struct sockaddr_storage addr;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
struct channel *chn = ((kw[2] == 'q') ? SMP_REQ_CHN(smp) : SMP_RES_CHN(smp));
int occ = 0;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct http_hdr_ctx *ctx = smp->ctx.a[0];
struct channel *chn = ((kw[2] == 'q') ? SMP_REQ_CHN(smp) : SMP_RES_CHN(smp));
int cnt;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct http_hdr_ctx ctx;
struct buffer *temp;
char del = ',';
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
int32_t pos;
struct channel *chn = ((kw[0] == 'h' || kw[2] == 'q') ? SMP_REQ_CHN(smp) : SMP_RES_CHN(smp));
int occ = 0;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct http_hdr_ctx *ctx = smp->ctx.a[0];
struct channel *chn = ((kw[0] == 'h' || kw[2] == 'q') ? SMP_REQ_CHN(smp) : SMP_RES_CHN(smp));
int cnt;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct http_hdr_ctx ctx;
{
struct channel *chn = SMP_REQ_CHN(smp);
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
struct channel *chn = SMP_REQ_CHN(smp);
struct buffer *temp;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
struct channel *chn = SMP_REQ_CHN(smp);
unsigned int hash = 0;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
struct channel *chn = SMP_REQ_CHN(smp);
char *ptr, *end;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
{
struct channel *chn = SMP_REQ_CHN(smp);
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 0);
if (!args || args->type != ARGT_USR)
return 0;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
if (!args || args->type != ARGT_USR)
return 0;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
if (!args || args->type != ARGT_STR)
return 0;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct http_hdr_ctx *ctx = smp->ctx.a[2];
if (!args || args->type != ARGT_STR)
return 0;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct http_hdr_ctx ctx;
delim = *args[1].data.str.area;
if (!smp->ctx.a[0]) { // first call, find the query string
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct htx_sl *sl;
}
if (!smp->ctx.a[0]) { // first call, find the query string
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct buffer *temp;
struct channel *chn = SMP_REQ_CHN(smp);
unsigned int hash = 0;
- if (IS_HTX_SMP(smp) || (smp->px->mode == PR_MODE_TCP)) {
+ if (smp->px->options2 & PR_O2_USE_HTX) {
/* HTX version */
struct htx *htx = smp_prefetch_htx(smp, chn, 1);
struct http_hdr_ctx ctx;