|
|
@ -254,6 +254,7 @@ class AnalyzeUrl( |
|
|
|
GET, POST |
|
|
|
GET, POST |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Throws(Exception::class) |
|
|
|
fun getResponse(): Call<String> { |
|
|
|
fun getResponse(): Call<String> { |
|
|
|
return when { |
|
|
|
return when { |
|
|
|
method == Method.POST -> { |
|
|
|
method == Method.POST -> { |
|
|
@ -276,6 +277,7 @@ class AnalyzeUrl( |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Throws(Exception::class) |
|
|
|
fun getResponseAsync(): Deferred<Response<String>> { |
|
|
|
fun getResponseAsync(): Deferred<Response<String>> { |
|
|
|
return when { |
|
|
|
return when { |
|
|
|
method == Method.POST -> { |
|
|
|
method == Method.POST -> { |
|
|
|