io.viper.common.Response.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of io.viper.core Show documentation
Show all versions of io.viper.core Show documentation
A netty based HTTP server and toolkit.
The newest version!
package io.viper.common
import io.viper.core.server.router.{JsonResponse, Utf8Response}
import org.json.{JSONArray, JSONObject}
object Response {
def apply(str: String) = new Utf8Response(str)
def apply(json: JSONObject) = new JsonResponse(json)
def apply(json: JSONArray) = new JsonResponse(json)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy