diff --git a/proteus-core/src/main/java/io/sinistral/proteus/server/ServerResponse.java b/proteus-core/src/main/java/io/sinistral/proteus/server/ServerResponse.java index 7fe041b..b3b749c 100644 --- a/proteus-core/src/main/java/io/sinistral/proteus/server/ServerResponse.java +++ b/proteus-core/src/main/java/io/sinistral/proteus/server/ServerResponse.java @@ -180,6 +180,13 @@ public ServerResponse body(ByteBuffer body) return this; } + public ServerResponse body(byte[] body) + { + this.body = ByteBuffer.wrap(body); + this.preprocessed = true; + return this; + } + public ServerResponse body(String body) { return this.body(ByteBuffer.wrap(body.getBytes()));