Simple

final case class Simple[F[_], _Req, _Res](url: Relative, req: Of[F, _Req], res: Of[F, _Res]) extends AjaxProtocol[F]

Simple because the response protocol is static and independent of request data. This is opposed to dependently-typed protocols where the response protocol depends on the request value.

Note: the F[_] type parameter is the message encoder (eg. JsonCodec, boopickle.Pickler)

trait Serializable
trait Product
trait Equals
trait AjaxProtocol[F]
class Object
trait Matchable
class Any

Type members

Types

type Req = _Req
type Res = _Res

Inherited types

Inherited from:
AjaxProtocol
final type ServerSideFnI[G[_], I] = (I, PreparedRequestType) => G[ResponseType]
Inherited from:
AjaxProtocol
final type ServerSideFnIO[G[_], I, O] = (I, PreparedRequestType) => G[(ResponseType, O)]
Inherited from:
AjaxProtocol
final type ServerSideFnO[G[_], O] = PreparedRequestType => G[(ResponseType, O)]
Inherited from:
AjaxProtocol

Value members

Concrete methods

override def responseProtocol(req: Req): Of[F, ResponseType]
Definition Classes

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

override val protocol: Simple[F, Req, Res]