Interface HttpListener


  • public interface HttpListener
    Listener related to HTTP events.
    • Method Detail

      • 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