Armeria: Support java.time.Duration type for `@Param` annotation

Created on 9 Jun 2020  路  2Comments  路  Source: line/armeria

As follow-up of #2783 (#2760), how about also support java.time.Duration type for @Param annotation?

class MyService {

    @Get("/data")
    HttpResponse getAllDataDuringTheDuration(@Param Duration duration) {
        ...
    }
}
new feature

Most helpful comment

SGTM. Please go ahead 馃槃

All 2 comments

In addition to this, it would be better to support the classes in the java.time package.

SGTM. Please go ahead 馃槃

Was this page helpful?
0 / 5 - 0 ratings