From 829cf76a8961df3e736e9acda240c3355061c9e4 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Mon, 14 Sep 2020 12:46:33 -0500 Subject: [PATCH] Issue #4954 - Expose header size/length from HttpParser - Minimal new API for exposing byte counts to HttpChannel. Signed-off-by: Joakim Erdfelt --- .../src/main/java/org/eclipse/jetty/http/HttpParser.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java index e6da0a2d736..9cad979abd4 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java @@ -365,6 +365,11 @@ public class HttpParser return _contentPosition; } + public int getHeaderLength() + { + return _headerBytes; + } + /** * Set if a HEAD response is expected *