Interface Stream

All Known Implementing Classes:
VertxStream.LocalPathStream, VertxStream.ReadStreamStream, VertxStreamConsumer, VertxStreamProducer

public interface Stream
Marker interface used to model binary streams
  • Method Details

    • charset

      default Optional<String> charset()
      A non empty Optional will alter the Content-Type header when the Stream is sent over http
      Returns:
      an optional charset name (eg. UTF-8)
    • mime

      default Optional<String> mime()
      A non empty Optional will alter the Content-Type header when the Stream is sent over http
      Returns:
      an optional mime type (eg. text/html)
    • fileName

      default Optional<String> fileName()
      A non empty Optional will add a content-disposition filename header when the Stream is sent over http. Only ascii chars will be preserved when the filename is sent.
      Returns:
      an optional filename