Esempio n. 1
0
 public static Content content(int code, Readable content) {
   return content(code, new ChunkBuffer().append(Chunk.create(content)).close());
 }
Esempio n. 2
0
 public static Content content(int code, CharSequence content) {
   return content(code, new ChunkBuffer().append(Chunk.create(content)).close());
 }
Esempio n. 3
0
 public Content content(java.io.InputStream s) {
   return content(new ChunkBuffer().append(Chunk.create(s)).close());
 }
Esempio n. 4
0
 public static Content content(int code, java.io.InputStream content) {
   return content(code, new ChunkBuffer().append(Chunk.create(content)).close());
 }
Esempio n. 5
0
 public Content content(byte[] s) {
   return content(new ChunkBuffer().append(Chunk.create(s)).close());
 }
Esempio n. 6
0
 public Content content(CharSequence s) {
   return content(new ChunkBuffer().append(Chunk.create(s)).close());
 }
Esempio n. 7
0
 public Body body(java.io.InputStream s) {
   return body(new ChunkBuffer().append(Chunk.create(s)).close());
 }
Esempio n. 8
0
 public Body body(byte[] s) {
   return body(new ChunkBuffer().append(Chunk.create(s)).close());
 }
Esempio n. 9
0
 public Body body(CharSequence s) {
   return body(new ChunkBuffer().append(Chunk.create(s)).close());
 }