0

I have seen some post like this

But I need to do it using Retrofit. I have tested url in Postman. Body is empty and status is 200.

How can I execute(HIT) this without opening it in browser and empty response,

interface BackEndService {

    @GET
    suspend fun hitUrl(@Url url:String):Call<ResponseBody>
}

I have tried with Nothing , Any etc as response . But it isn't working

Can someone guide me how to achieve this

Taimoor Khan
  • 541
  • 4
  • 20

0 Answers0