io.github.edadma.apion.ResponseBody.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apion_sjs1_3 Show documentation
Show all versions of apion_sjs1_3 Show documentation
A type-safe HTTP server framework for Scala.js that combines Express-style ergonomics with Scala's powerful type system
package io.github.edadma.apion
import io.github.edadma.nodejs.Buffer
import scala.language.implicitConversions
sealed trait ResponseBody
//implicit def stringToResponseBody(s: String): ResponseBody = Response.text(s, "utf-8", )
case class TextBody(content: String, encoding: String, data: Buffer) extends ResponseBody
case class ContentBody(content: Buffer) extends ResponseBody
// case class Stream(readable: ReadableStream) extends ResponseBody
case object EmptyBody extends ResponseBody
© 2015 - 2025 Weber Informatics LLC | Privacy Policy