Skip to content

Commit 0fa6889

Browse files
committed
Remove raw message decoder
1 parent 3ac5841 commit 0fa6889

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

jooby/src/main/java/io/jooby/MessageDecoder.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ public interface MessageDecoder {
2424
throw new StatusCodeException(StatusCode.UNSUPPORTED_MEDIA_TYPE);
2525
}
2626
};
27-
/**
28-
* Parse body to one of the <code>raw</code> types: String, byte[], etc.
29-
*/
30-
MessageDecoder RAW = new MessageDecoder() {
31-
@Override public <T> T decode(Context ctx, Type type) {
32-
return ctx.body().to(type);
33-
}
34-
};
3527

3628
/**
3729
* Parse HTTP body into the given type.

jooby/src/main/java/io/jooby/internal/RouterImpl.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,9 @@ public RouterImpl(ClassLoader loader) {
144144
this.analyzer = new RouteAnalyzer(source, false);
145145
stack.addLast(new Stack(""));
146146

147-
defaultParser();
148147
converters = ValueConverters.defaultConverters();
149148
}
150149

151-
private void defaultParser() {
152-
parsers.put(MediaType.text.getValue(), MessageDecoder.RAW);
153-
}
154-
155150
@Nonnull @Override public Map<String, Object> getAttributes() {
156151
return attributes;
157152
}

0 commit comments

Comments
 (0)