Interface ResponseStarted

All Superinterfaces:
Event, NetworkEvent

public interface ResponseStarted extends NetworkEvent
An event indicating that the first byte of the URL response body has been received. For HTTP requests, this means that the status line and the response headers are available.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Network
    Returns the Network instance initiated this event.
    default int
    Returns the HTTP response code.
    default UrlRequest
    Returns the URL request associated with the response.
  • Method Details

    • network

      default Network network()
      Description copied from interface: NetworkEvent
      Returns the Network instance initiated this event.
      Specified by:
      network in interface NetworkEvent
    • urlRequest

      default UrlRequest urlRequest()
      Returns the URL request associated with the response.
    • responseCode

      default int responseCode()
      Returns the HTTP response code.