object Decode
- Source
- Decode.scala
- Alphabetic
- By Inheritance
- Decode
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type Aux[A, CT <: String] = Decode[A] { type ContentType = CT }
-
trait
Dispatchable[A, CT] extends AnyRef
Abstraction over Decode to select correct decoder according to Content-Type of a request
- type Json[A] = Decode[A] { type ContentType = io.finch.Application.Json }
- type Text[A] = Decode[A] { type ContentType = io.finch.Text.Plain }
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[A, CT <: String](implicit d: Aux[A, CT]): Aux[A, CT]
Returns a Decode instance for a given type (with required content type).
Returns a Decode instance for a given type (with required content type).
- Annotations
- @inline()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
instance[A, CT <: String](fn: (Buf, Charset) ⇒ Try[A]): Aux[A, CT]
Creates an instance for a given type.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def json[A](fn: (Buf, Charset) ⇒ Try[A]): Json[A]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def text[A](fn: (Buf, Charset) ⇒ Try[A]): Text[A]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object Dispatchable
This is the API documentation for finch
Finch is a thin layer of purely functional basic blocks atop of [Finagle][finagle] for building composable HTTP APIs. Its mission is to provide the developers simple and robust HTTP primitives being as close as possible to the bare metal Finagle API.
Finch uses multi-project structure and contains of the following _modules_:
Please refer to the documentation for a more detailed introduction to the library.