object typeDSL
- Source
- typeDSL.scala
- Alphabetic
- By Inheritance
- typeDSL
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
class
:>[path, postfix] extends DSLDef
concatenates pair of paths into complete path
concatenates pair of paths into complete path
- path
prefix - always simple path without disjunctions
- postfix
postfix
-
final
case class
<|>[left, right](left: left, right: right) extends DSLDef with Product with Serializable
disjunction operator can be used both for defining API type and for joining different handlers resulting type is effectively
Either[left input, right input] => Either[left output, right output]
-
final
class
AllQuery[name, x] extends DSLAtom
return query params as Map[String, String]
-
final
class
ApiKeyAuth[realm, Param <: CanHoldApiKey] extends DSLAtomAuth
defines api key authentication scheme
defines api key authentication scheme
- Param
on of: Header, Cookie or Query
-
final
class
As[directive, name] extends DSLAtom
transforms directive to rename provided parameter with given name
-
final
class
BasicAuth[realm, name, T] extends DSLAtomAuth
defines basic authentication scheme
-
final
class
BearerAuth[realm, name, T] extends DSLAtomAuth
defines bearer authentication scheme
- trait CanHoldApiKey extends AnyRef
-
final
class
Capture[name, x] extends DSLAtom
captures param from path element
captures param from path element
- name
name of param, have no effect to routing
- x
type of param, should have instance of
FromPathParam
-
final
class
Complete[x] extends DSLDef
indicates result of element of type
x
does not check HTTP method -
final
class
Cookie[name, x] extends DSLAtom with CanHoldApiKey
captures field value from Cookie
- trait DSLAtom extends DSLDef
- trait DSLAtomAuth extends DSLAtom
- trait DSLDef extends AnyRef
- trait DSLMethod extends DSLAtom
-
final
class
Delete extends DSLMethod
indicates result of element of type
x
via DELETE HTTP method -
final
class
FormField[name, x] extends DSLAtom
captures field value from form data
captures field value from form data
- name
field name
- x
parameter type, should have
FromFormParam
instance
-
final
class
Get extends DSLMethod
indicates result of element of type
x
via GET HTTP method -
class
Group[key] extends AnyRef
naming intermediate group of methods
-
final
class
Head extends DSLMethod
indicates result of element of type
x
via HEAD HTTP method -
final
class
Header[name, x] extends DSLAtom with CanHoldApiKey
captures header value
captures header value
- name
header name
- x
parameter type, should have
FromHeader
instance
-
class
Key[key] extends DSLAtom
naming symbol of single route in complex route
-
trait
Meta extends DSLAtom
Any path component that is subtype of Meta will be ignored by
Serve
but could support additional information like swagger tags or descriptions -
final
class
Options extends DSLMethod
indicates result of element of type
x
via OPTIONS HTTP method -
final
class
Patch extends DSLAtom
indicates result of element of type
x
via PATCH HTTP method -
final
class
Post extends DSLMethod
indicates result of element of type
x
via POST HTTP method -
final
class
Prefix[pref] extends DSLAtom
Indicated single path prefix Could be replaced by it's parameter
Indicated single path prefix Could be replaced by it's parameter
- pref
singleton string
-
final
class
Put extends DSLMethod
indicates result of element of type
x
via PUT HTTP method -
final
class
QueryFlag[name] extends DSLAtom
captures fact of provision of param in query
captures fact of provision of param in query
- name
name of param
-
final
class
QueryParam[name, x] extends DSLAtom with CanHoldApiKey
captures param from query
captures param from query
- name
name of param
- x
type of param, should have instance of
FromQueryParam
-
final
class
QueryParams[name, x] extends DSLAtom
captures param list from query
captures param list from query
- name
name of param
- x
type of param, should have instance of
FromQueryParam
-
final
class
Record[place[_, _], x] extends DSLAtom
captures multiple fields from place
captures multiple fields from place
- place
Header, FormField, Cookie or QueryParam
- x
record type - only simple types, with modifiers like Option or List accepted
-
final
class
ReqBody[name, x] extends DSLAtom
captures request body and unmarshalls in to requested type
captures request body and unmarshalls in to requested type
- x
type of body, should have
FromRequestUnmarshaller
instance
-
class
Tag[tag] extends Meta
tagging symbol for route
-
final
class
Transform[source, name, t, a, b] extends DSLAtom
transforms existing parameter introducing new parameter using known transformation
-
final
class
TransformReq[source, name, t, a, b, req] extends DSLAtom
transforms existing parameter introducing new parameter using known transformation
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )