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

io.github.edadma.apion.ResponseBody.scala Maven / Gradle / Ivy

Go to download

A type-safe HTTP server framework for Scala.js that combines Express-style ergonomics with Scala's powerful type system

There is a newer version: 0.0.7
Show newest version
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