Skip to content

v5.11.0

Compare
Choose a tag to compare
@losizm losizm released this 08 Apr 07:23

What's New?

The user no longer needs to specify an ExecutionContext when building an Entity from a writer to an OutputStream.

import java.io.PrintWriter
import scamper.Entity

// This is a silly example. Don't do this.
val body = Entity.fromOutputStream { out =>
  new PrintWriter(out, true).println("Hello, world!")
}