net.ivoah.vial

package net.ivoah.vial

Members list

Type members

Classlikes

case class Cookie(name: String, value: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Request(headers: Map[String, Seq[String]], params: Map[String, String], body: Array[Byte])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Response(data: Array[Byte], headers: Map[String, Seq[String]], status_code: Int)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Response

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Response.type
case class Router(routes: PartialFunction[(String, String, Request), Response])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Server(router: Router, host: String, port: Int, socket: Option[String])(implicit logger: String => Unit)

Main entry point of a vial application.

Main entry point of a vial application.

Takes either a host/port combo, or the path to a unix domain socket.

Value parameters

host

host address to bind to, defaults to "127.0.0.1", ignored if socket is present.

port

port to bind to, defaults to 8000, ignored if socket is present.

router

the router to use

socket

path to unix domain socket, optional.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all