Package com.naver.ads.network.raw
Interface HttpCallback
-
- All Implemented Interfaces:
public interface HttpCallbackthe callback type to notify the result of an http requests.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonResponse(HttpRequest request, HttpResponse response)Called when the HttpResponse is returned by the HTTP server. abstract UnitonFailure(HttpRequest request, Exception exception)Called when the HttpRequest call could not be executed due an error. -
-
Method Detail
-
onResponse
abstract Unit onResponse(HttpRequest request, HttpResponse response)
Called when the HttpResponse is returned by the HTTP server.
- Parameters:
request- the http requestresponse- the response for the http request
-
onFailure
abstract Unit onFailure(HttpRequest request, Exception exception)
Called when the HttpRequest call could not be executed due an error.
- Parameters:
request- the http requestexception- the reason for request failure.
-
-
-
-