summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_h1proto.h
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2023-07-01 12:18:22 +0800
committerZhidao HONG <z.hong@f5.com>2023-07-01 12:18:22 +0800
commit458722df55bb9727680b7734e7fff8fb5639db28 (patch)
tree6f1d628a50e94fd784eaebeefd3f049e3b475dcf /src/nxt_h1proto.h
parentc61ccec7b4926476b2188092e25990e433332688 (diff)
downloadunit-458722df55bb9727680b7734e7fff8fb5639db28.tar.gz
unit-458722df55bb9727680b7734e7fff8fb5639db28.tar.bz2
Var: supported HTTP response header variables.
This commit adds the variable $response_header_NAME.
Diffstat (limited to 'src/nxt_h1proto.h')
-rw-r--r--src/nxt_h1proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_h1proto.h b/src/nxt_h1proto.h
index f8500963..b324db8d 100644
--- a/src/nxt_h1proto.h
+++ b/src/nxt_h1proto.h
@@ -51,4 +51,7 @@ struct nxt_h1proto_s {
nxt_conn_t *conn;
};
+#define nxt_h1p_is_http11(h1p) \
+ ((h1p)->parser.version.s.minor != '0')
+
#endif /* _NXT_H1PROTO_H_INCLUDED_ */