Interface ResponseBytesReceived

All Superinterfaces:
Event, NetworkEvent

public interface ResponseBytesReceived extends NetworkEvent
An event indicating that a part of HTTP response body has been received over the network.
Since:
7.1
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<String>
    Returns an Optional that contains the charset in lower case retrieved from the HTTP response headers of this request or an empty Optional if the received headers do not include any information about the charset.
    default byte[]
    Returns the received part of HTTP response body.
    Returns an Optional that contains the MIME type value retrieved from the Content-Type header of this request or an empty Optional if there is no MIME type.
    default Network
    Returns the Network instance initiated this event.
    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.
    • mimeType

      default Optional<MimeType> mimeType()
      Returns an Optional that contains the MIME type value retrieved from the Content-Type header of this request or an empty Optional if there is no MIME type.
    • charset

      default Optional<String> charset()
      Returns an Optional that contains the charset in lower case retrieved from the HTTP response headers of this request or an empty Optional if the received headers do not include any information about the charset.
    • data

      default byte[] data()
      Returns the received part of HTTP response body.