summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-08-31 14:25:02 +0200
committerGitHub <noreply@github.com>2020-08-31 14:25:02 +0200
commitfb84d303e6e1f4c434bafe44538dbf3689d3bddd (patch)
tree64bf3e3441c805c7b595b639ebe5cbeeec149e3b /container-core
parent2f09797261030454cadee5250d03e8eee15eed1a (diff)
parent46626a9895ca4bf5de05f74d84d64b3f57657fa5 (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.java18
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();
}