
spice.http.content.IOStreamContent.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spice-core_3 Show documentation
Show all versions of spice-core_3 Show documentation
Core functionality leveraged and shared by most other sub-projects of YouI.
package spice.http.content
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: rapid.Stream[Byte] = throw new UnsupportedOperationException("IOStreamContent cannot be represented as a stream!")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy