示例#1
0
文件: Response.java 项目: haint/juzu
 public static Content content(int code, Readable content) {
   return content(code, new ChunkBuffer().append(Chunk.create(content)).close());
 }
示例#2
0
文件: Response.java 项目: haint/juzu
 public static Content content(int code, CharSequence content) {
   return content(code, new ChunkBuffer().append(Chunk.create(content)).close());
 }
示例#3
0
文件: Response.java 项目: haint/juzu
 public Content content(java.io.InputStream s) {
   return content(new ChunkBuffer().append(Chunk.create(s)).close());
 }
示例#4
0
文件: Response.java 项目: haint/juzu
 public static Content content(int code, java.io.InputStream content) {
   return content(code, new ChunkBuffer().append(Chunk.create(content)).close());
 }
示例#5
0
文件: Response.java 项目: haint/juzu
 public Content content(byte[] s) {
   return content(new ChunkBuffer().append(Chunk.create(s)).close());
 }
示例#6
0
文件: Response.java 项目: haint/juzu
 public Content content(CharSequence s) {
   return content(new ChunkBuffer().append(Chunk.create(s)).close());
 }
示例#7
0
文件: Response.java 项目: haint/juzu
 public Body body(java.io.InputStream s) {
   return body(new ChunkBuffer().append(Chunk.create(s)).close());
 }
示例#8
0
文件: Response.java 项目: haint/juzu
 public Body body(byte[] s) {
   return body(new ChunkBuffer().append(Chunk.create(s)).close());
 }
示例#9
0
文件: Response.java 项目: haint/juzu
 public Body body(CharSequence s) {
   return body(new ChunkBuffer().append(Chunk.create(s)).close());
 }