Package com.castlabs.android.network

# Interface HttpListener

public interface HttpListener
Listener related to HTTP events.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onRedirect(int requestType, int httpCode, URL from, URL to)`
  An HTTP redirection (status code 3XX) has occurred.

- ## Method Details

  - ### onRedirect

    void onRedirect(int requestType, int httpCode, @NonNull URL from, @NonNull URL to)
    An HTTP redirection (status code 3XX) has occurred.
    Parameters:
      `requestType` - Data type for this request
      `httpCode` - The HTTP 3XX code
      `from` - Original URL
      `to` - Redirected URL, got from the "location" HTTP header