public interface RequestCompleted extends NetworkEvent
| Modifier and Type | Method and Description |
|---|---|
default NetError |
errorCode()
Returns the URL request error code.
|
default boolean |
isStarted()
Returns
true if the URL request has been started. |
default Network |
network()
Returns the
Network instance initiated this event. |
default int |
responseCode()
Returns the HTTP response code or 0 if the request has been failed or canceled.
|
default UrlRequestStatus |
status()
Returns the status of the URL request.
|
default UrlRequest |
urlRequest()
Returns the URL request that has been completed.
|
default Network network()
NetworkEventNetwork instance initiated this event.network in interface NetworkEventdefault UrlRequest urlRequest()
default int responseCode()
default boolean isStarted()
true if the URL request has been started. Returns false when some
information (like the socket address) is not available for the URL request.default UrlRequestStatus status()
default NetError errorCode()
NetError.NET_ERROR_UNSPECIFIED value.