snunit-cask
snunit-cask
API
cask
cask.decorators
compress
cask.endpoints
FormReader
FormReader
JsReader
JsReader
JsonData
JsonData
JsonDataImpl
ParamReader
ParamReader
CookieParam
FormDataParam
HttpExchangeParam
NilParam
RequestParam
QueryParamReader
QueryParamReader
BooleanParam
ByteParam
DoubleParam
FloatParam
IntParam
LongParam
ShortParam
SimpleParam
StringParam
StaticUtil
WebEndpoint
WebEndpoint
WebsocketResult
WebsocketResult
Listener
Response
WsActor
WsChannelActor
WsHandler
delete
get
getJson
options
patch
post
postForm
postJson
put
route
staticFiles
staticResources
websocket
cask.internal
Conversion
Conversion
DispatchTrie
DispatchTrie
Util
cask.main
ErrorMsgs
Main
Main
DefaultHandler
MainRoutes
Routes
cask.model
Abort
Cookie
Cookie
FormEntry
FormEntry
FormFile
FormValue
Redirect
Request
Response
Response
Data
BooleanData
NumericData
UnitData
WritableData
Data
DataCompanion
StaticFile
StaticResource
Status
Status
Accepted
BadGateway
BadRequest
Conflict
Continue
Created
EnhanceYourCalm
ExpectationFailed
Forbidden
Found
GatewayTimeout
Gone
HTTPVersionNotSupported
InternalServerError
LengthRequired
MethodNotAllowed
MovedPermanently
MultipleChoices
NoContent
NonAuthoritativeInformation
NotAcceptable
NotFound
NotImplemented
NotModified
OK
PartialContent
PaymentRequired
PermanentRedirect
PreconditionFailed
ProxyAuthenticationRequired
RequestEntityTooLarge
RequestTimeout
RequestURITooLong
RequestedRangeNotSatisfiable
ResetContent
SeeOther
ServiceUnavailable
SwitchingProtocols
Teapot
TemporaryRedirect
TooManyRequests
Unauthorized
UnavailableForLegalReasons
Unknown
UnsupportedMediaType
UseProxy
cask.router
ArgReader
ArgSig
Decorator
Decorator
Endpoint
EndpointMetadata
EndpointMetadata
EntryPoint
HttpEndpoint
Macros
NoOpParser
NoOpParser
RawDecorator
Result
Result
Error
Exception
InvalidArguments
MismatchedArguments
Error
ParamError
DefaultFailed
Invalid
ParamError
Success
RoutesEndpointsMetadata
RoutesEndpointsMetadata
Runtime
doc
cask.util
Logger
Logger
Console
Console
globalLogger
Scheduler
WebsocketBase
WebsocketClientImpl
Ws
Binary
ChannelClosed
Close
Close
Error
Event
Ping
Pong
Text
WsClient
WsClient
snunit-cask
/
cask.main
/
MainRoutes
MainRoutes
cask.main.MainRoutes
class
MainRoutes
extends
Main
with
Routes
A combination of
cask.Main
and
cask.Routes
, ideal for small one-file web applications.
Attributes
Graph
Reset zoom
Hide graph
Show graph
Supertypes
trait
Routes
class
Main
class
Object
trait
Matchable
class
Any
Clear all
Members list
Concise view
Value members
Concrete methods
def
allRoutes
:
Seq
[
Routes
]
Inherited methods
def
caskMetadata
:
RoutesEndpointsMetadata
[
Routes
]
Attributes
Inherited from:
Routes
def
createActorContext
:
Simple
Attributes
Inherited from:
Main
def
createExecutionContext
:
ExecutionContextExecutor
Attributes
Inherited from:
Main
def
debugMode
:
Boolean
Attributes
Inherited from:
Main
def
decorators
:
Seq
[
Decorator
[
_
,
_
,
_
]]
Attributes
Inherited from:
Routes
def
defaultHandler
:
BlockingHandler
Attributes
Inherited from:
Main
def
dispatchTrie
:
DispatchTrie
[
Map
[
String
, (
Routes
,
EndpointMetadata
[
_
])]]
Attributes
Inherited from:
Main
def
handleEndpointError
(
routes
:
Routes
,
metadata
:
EndpointMetadata
[
_
],
e
:
Error
):
Response
[
String
]
Attributes
Inherited from:
Main
def
handleMethodNotAllowed
():
Raw
Attributes
Inherited from:
Main
def
handleNotFound
():
Raw
Attributes
Inherited from:
Main
def
host
:
String
Attributes
Inherited from:
Main
def
main
(
args
:
Array
[
String
]):
Unit
Attributes
Inherited from:
Main
def
mainDecorators
:
Seq
[
Decorator
[
_
,
_
,
_
]]
Attributes
Inherited from:
Main
def
port
:
Int
Attributes
Inherited from:
Main
def
verbose
:
Boolean
Attributes
Inherited from:
Main
Inherited fields
val
executionContext
:
ExecutionContextExecutor
Attributes
Inherited from:
Main
Implicits
Inherited implicits
implicit
val
actorContext
:
Context
Attributes
Inherited from:
Main
implicit
def
log
:
Logger
Attributes
Inherited from:
Main