File tree Expand file tree Collapse file tree
jooby/src/main/java/io/jooby Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments