public interface ResponseBytesReceived extends NetworkEvent
| Modifier and Type | Method and Description |
|---|---|
default java.util.Optional<java.lang.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. |
default byte[] |
data()
Returns the received part of HTTP response body.
|
default java.util.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. |
default Network |
network()
Returns the
Network instance initiated this event. |
default UrlRequest |
urlRequest()
Returns the URL request associated with the response.
|
default Network network()
NetworkEventNetwork instance initiated this event.network in interface NetworkEventdefault UrlRequest urlRequest()
default java.util.Optional<MimeType> mimeType()
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 java.util.Optional<java.lang.String> charset()
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[] data()