All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spice.http.content.IOStreamContent.scala Maven / Gradle / Ivy

There is a newer version: 0.7.2
Show newest version
package spice.http.content

import cats.effect.IO
import spice.net.ContentType

import java.io.OutputStream

abstract class IOStreamContent(val contentType: ContentType,
                               val lastModified: Long = System.currentTimeMillis(),
                               val length: Long = -1L) extends Content {
  def stream(out: OutputStream): Unit

  override def asStream: fs2.Stream[IO, Byte] = throw new UnsupportedOperationException("IOStreamContent cannot be represented as a stream!")
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy