|
|
@ -11,7 +11,7 @@ import retrofit2.http.Url |
|
|
|
* Created by GKF on 2018/1/21. |
|
|
|
* Created by GKF on 2018/1/21. |
|
|
|
* get web content |
|
|
|
* get web content |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Suppress("unused") |
|
|
|
interface HttpGetApi { |
|
|
|
interface HttpGetApi { |
|
|
|
@GET |
|
|
|
@GET |
|
|
|
suspend fun getAsync( |
|
|
|
suspend fun getAsync( |
|
|
@ -38,4 +38,11 @@ interface HttpGetApi { |
|
|
|
@QueryMap(encoded = true) queryMap: Map<String, String>, |
|
|
|
@QueryMap(encoded = true) queryMap: Map<String, String>, |
|
|
|
@HeaderMap headers: Map<String, String> |
|
|
|
@HeaderMap headers: Map<String, String> |
|
|
|
): Call<String> |
|
|
|
): Call<String> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GET |
|
|
|
|
|
|
|
suspend fun getMapByteAsync( |
|
|
|
|
|
|
|
@Url url: String, |
|
|
|
|
|
|
|
@QueryMap(encoded = true) queryMap: Map<String, String>, |
|
|
|
|
|
|
|
@HeaderMap headers: Map<String, String> |
|
|
|
|
|
|
|
): Response<ByteArray> |
|
|
|
} |
|
|
|
} |
|
|
|