When using rxjava 1.x i used to return Observable<Void>
to handle empty response from retrofit:
@POST( "login" )
Observable<Void> getToken( @Header( "Authorization" ) String authorization,
@Header( "username" ) String username,
@Header( "password" ) String password );
But since rxjava 2.x won't emit anything with Void
is there any good practice to handle those empty responses?