postJsonCached

cask.endpoints.postJsonCached
class postJsonCached(path: String, subpath: Boolean) extends postJsonBase

Attributes

Graph
Supertypes
class postJsonBase
trait HttpEndpoint[Response[JsonData], Value]
trait Endpoint[Raw, Response[JsonData], Value, Request]
class Annotation
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

final type Delegate = (Request, Map[String, Value]) => Result[Response[JsonData]]

Attributes

Inherited from:
Decorator
type InputParser[T] = JsReader[T]

Attributes

Inherited from:
postJsonBase
final type InputTypeAlias = Value

Attributes

Inherited from:
Decorator

Value members

Inherited methods

Attributes

Inherited from:
Endpoint
def getParamParser[T](implicit p: JsReader[T]): InputParser[T]

Attributes

Inherited from:
Decorator
def wrapFunction(ctx: Request, delegate: Delegate): Result[Raw]

Attributes

Inherited from:
postJsonBase
def wrapPathSegment(s: String): Value

HttpEndpoints are unique among decorators in that they alone can bind path segments to parameters, e.g. binding /hello/:world to (world: Int). In order to do so, we need to box up the path segment strings into an Input so they can later be parsed by getParamParser into an instance of the appropriate type.

HttpEndpoints are unique among decorators in that they alone can bind path segments to parameters, e.g. binding /hello/:world to (world: Int). In order to do so, we need to box up the path segment strings into an Input so they can later be parsed by getParamParser into an instance of the appropriate type.

Attributes

Inherited from:
postJsonBase

Inherited fields

val methods: Seq[String]

Which HTTP methods does this endpoint support? POST? GET? PUT? Or some combination of those?

Which HTTP methods does this endpoint support? POST? GET? PUT? Or some combination of those?

Attributes

Inherited from:
postJsonBase