use of io.micronaut.json.codec.JsonStreamMediaTypeCodec in project micronaut-core by micronaut-projects.
the class DefaultHttpClient method createDefaultMediaTypeRegistry.
private static MediaTypeCodecRegistry createDefaultMediaTypeRegistry() {
JsonMapper mapper = new JacksonDatabindMapper();
ApplicationConfiguration configuration = new ApplicationConfiguration();
return MediaTypeCodecRegistry.of(new JsonMediaTypeCodec(mapper, configuration, null), new JsonStreamMediaTypeCodec(mapper, configuration, null));
}
Aggregations