1
0
mirror of https://github.com/google/nomulus synced 2026-04-11 20:17:22 +00:00

Add RDAP pretty-printing option

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=176529676
This commit is contained in:
mountford
2017-11-21 10:41:01 -08:00
committed by jianglai
parent 6f659659ff
commit 67a41273bb
13 changed files with 71 additions and 9 deletions

View File

@@ -72,4 +72,10 @@ public final class RdapModule {
static Optional<Boolean> provideIncludeDeleted(HttpServletRequest req) {
return RequestParameters.extractOptionalBooleanParameter(req, "includeDeleted");
}
@Provides
@Parameter("formatOutput")
static Optional<Boolean> provideFormatOutput(HttpServletRequest req) {
return RequestParameters.extractOptionalBooleanParameter(req, "formatOutput");
}
}