public static < T > Middleware < SyncHandler < T > , AsyncHandler < Response < ByteString > > > htmlSerializeSync ( final String templateName ) { Middleware < SyncHandler < T > , AsyncHandler < T > > syncToAsync = Middleware :: syncToAsync ; return syncToAsync . and ( htmlSerialize ( templateName ) ) ; }
Sync middleware for POJO .