Interface ContentEncoder

All Superinterfaces:
Function<OutputStream,OutputStream>, UnaryOperator<OutputStream>

public interface ContentEncoder extends UnaryOperator<OutputStream>
Content encoder.
  • Field Details

  • Method Details

    • apply

      OutputStream apply(OutputStream network)
      Encode an output stream.
      Specified by:
      apply in interface Function<OutputStream,OutputStream>
      Parameters:
      network - output stream to be written over the network
      Returns:
      output stream to write plain data (to compress, encrypt)
    • headers

      default void headers(WritableHeaders<?> headers)
      Update headers.
      Parameters:
      headers - headers to update