diff options
author | Håkon Hallingstad <hakon@yahoo-inc.com> | 2017-02-09 11:57:43 +0100 |
---|---|---|
committer | Håkon Hallingstad <hakon@yahoo-inc.com> | 2017-02-09 11:57:43 +0100 |
commit | 10c9ce48d4f17da1271699091dc95d4c726ee4c6 (patch) | |
tree | d13403cd4fdfb2b435935b39ce615d2694832c51 /container-core | |
parent | 084ac886ddd29eef26798c5d3854c4647bf5eb73 (diff) |
Adds test of HttpProxy
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/jdisc/LiteralResponse.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/jdisc/LiteralResponse.java b/container-core/src/main/java/com/yahoo/container/jdisc/LiteralResponse.java deleted file mode 100644 index c923c0ce0a5..00000000000 --- a/container-core/src/main/java/com/yahoo/container/jdisc/LiteralResponse.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.container.jdisc; - -import java.io.IOException; -import java.io.OutputStream; -import java.nio.charset.StandardCharsets; - -public class LiteralResponse extends HttpResponse { - private final String body; - - public LiteralResponse(int code, String body) { - super(code); - this.body = body; - } - - @Override - public void render(OutputStream outputStream) throws IOException { - outputStream.write(body.getBytes(StandardCharsets.UTF_8)); - } -} |