diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-31 14:25:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 14:25:02 +0200 |
commit | fb84d303e6e1f4c434bafe44538dbf3689d3bddd (patch) | |
tree | 64bf3e3441c805c7b595b639ebe5cbeeec149e3b /container-core | |
parent | 2f09797261030454cadee5250d03e8eee15eed1a (diff) | |
parent | 46626a9895ca4bf5de05f74d84d64b3f57657fa5 (diff) |
Merge pull request #14208 from vespa-engine/bratseth/drain
Bratseth/drain
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java b/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java index e02ae152b3f..edd24fed515 100644 --- a/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java +++ b/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java @@ -517,11 +517,9 @@ public class HttpRequest { } /** - * Access an HTTP header in the request. Multi-value headers are not - * supported. + * Access an HTTP header in the request. Multi-value headers are not supported. * - * @param name - * the name of an HTTP header + * @param name the name of an HTTP header * @return the first pertinent value */ public String getHeader(String name) { @@ -530,20 +528,12 @@ public class HttpRequest { return parentRequest.headers().get(name).get(0); } - /** - * Get the host segment of the URI of this request. - * - * @return the host name from the URI - */ + /** Get the host segment of the URI of this request. */ public String getHost() { return getUri().getHost(); } - /** - * The port of the URI of this request. - * - * @return the port number of the URI - */ + /** The port of the URI of this request. */ public int getPort() { return getUri().getPort(); } |