SharedContentHelpers

spice.http.content.SharedContentHelpers

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Content.type

Members list

Concise view

Value members

Abstract methods

def classPath(url: URL): Content
def classPath(path: String, contentType: ContentType): Content
def file(file: File): Content
def file(file: File, contentType: ContentType): Content
def url(url: URL): Content
def url(url: URL, contentType: ContentType): Content

Concrete methods

def bytes(value: Array[Byte], contentType: ContentType): Content
def classPath(path: String): Content
def classPathOption(path: String): Option[Content]
def graphql(query: String, operationName: Option[String], variables: List[(String, Json)]): Content
def json(value: Json, compact: Boolean): Content
def jsonFrom[T : Reader](value: T, compact: Boolean): Content
def string(value: String, contentType: ContentType): Content

Concrete fields