Trait

endpoints.xhr

LowLevelEndpoints

Related Doc: package xhr

Permalink

trait LowLevelEndpoints extends algebra.LowLevelEndpoints with Endpoints

Interpreter for algebra.LowLevelEndpoints that represents the response as a XMLHttpRequest value.

Source
LowLevelEndpoints.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LowLevelEndpoints
  2. Endpoints
  3. Methods
  4. Urls
  5. LowLevelEndpoints
  6. Endpoints
  7. Responses
  8. Requests
  9. Methods
  10. Urls
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Endpoint[A, B] = Function1[A, Result[B]]

    Permalink

    A function that takes the information needed to build a request and returns a task yielding the information carried by the response.

    A function that takes the information needed to build a request and returns a task yielding the information carried by the response.

    Definition Classes
    Endpoints → Endpoints
  2. type Method = String

    Permalink
    Definition Classes
    Methods → Methods
  3. abstract type MuxEndpoint[Req <: MuxRequest, Resp, Transport]

    Permalink
    Definition Classes
    Endpoints
  4. trait Path[A] extends Url[A]

    Permalink

    Builds an URL path from an A

    Builds an URL path from an A

    Definition Classes
    Urls
  5. implicit class PathOps[A] extends AnyRef

    Permalink
    Definition Classes
    Urls
  6. trait QueryString[A] extends AnyRef

    Permalink

    Defines how to build a query string from an A

    Defines how to build a query string from an A

    Definition Classes
    Urls
  7. implicit class QueryStringOps[A] extends AnyRef

    Permalink
    Definition Classes
    Urls
  8. trait QueryStringParam[A] extends AnyRef

    Permalink

    Defines how to build a query string parameter value from an A

    Defines how to build a query string parameter value from an A

    Definition Classes
    Urls
  9. type RawRequestEntity = Function1[XMLHttpRequest, Any]

    Permalink

    Represents the request entity as a function that is passed the underlying XMLHttpRequest (so this one can be modified in place) and returns the actual entity to use

    Represents the request entity as a function that is passed the underlying XMLHttpRequest (so this one can be modified in place) and returns the actual entity to use

    Definition Classes
    LowLevelEndpoints → LowLevelEndpoints
  10. type RawResponseEntity = XMLHttpRequest

    Permalink

    The response can be retrieved from the XMLHttpRequest API

    The response can be retrieved from the XMLHttpRequest API

    Definition Classes
    LowLevelEndpoints → LowLevelEndpoints
  11. type Request[A] = Function1[A, (XMLHttpRequest, Option[Any])]

    Permalink

    A function that takes the information A and returns an XMLHttpRequest with an optional request entity.

    A function that takes the information A and returns an XMLHttpRequest with an optional request entity. If provided, the request entity must be compatible with the send method of XMLHttpRequest.

    Definition Classes
    Endpoints → Requests
  12. type RequestEntity[A] = Function2[A, XMLHttpRequest, Any]

    Permalink

    A function that, given information A and an XMLHttpRequest, returns a request entity.

    A function that, given information A and an XMLHttpRequest, returns a request entity. Also, as a side-effect, the function can set the corresponding Content-Type header on the given XMLHttpRequest.

    Definition Classes
    Endpoints → Requests
  13. type RequestHeaders[A] = Function2[A, XMLHttpRequest, Unit]

    Permalink

    A function that takes the information A and the XMLHttpRequest and sets up some headers on it.

    A function that takes the information A and the XMLHttpRequest and sets up some headers on it.

    Definition Classes
    Endpoints → Requests
  14. type Response[A] = Function1[XMLHttpRequest, Either[Exception, A]]

    Permalink

    Attempts to decode an A from an XMLHttpRequest’s response

    Attempts to decode an A from an XMLHttpRequest’s response

    Definition Classes
    Endpoints → Responses
  15. abstract type Result[A]

    Permalink

    A value that eventually yields an A.

    A value that eventually yields an A.

    Typically, concrete representation of Result will have an instance of MonadError, so that we can perform requests (sequentially and in parallel) and recover errors.

    Definition Classes
    Endpoints
  16. trait Segment[A] extends AnyRef

    Permalink

    Defines how to build a path segment from an A

    Defines how to build a path segment from an A

    Definition Classes
    Urls
  17. trait Url[A] extends AnyRef

    Permalink

    Builds an URL from an A

    Builds an URL from an A

    Definition Classes
    Urls

Abstract Value Members

  1. abstract def endpoint[A, B](request: Request[A], response: Response[B]): Endpoint[A, B]

    Permalink
    Definition Classes
    Endpoints
  2. abstract def muxEndpoint[Req <: MuxRequest, Resp, Transport](request: Request[Transport], response: Response[Transport]): MuxEndpoint[Req, Resp, Transport]

    Permalink
    Definition Classes
    Endpoints

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def Delete: String

    Permalink
    Definition Classes
    Methods → Methods
  5. def Get: String

    Permalink
    Definition Classes
    Methods → Methods
  6. def Post: String

    Permalink
    Definition Classes
    Methods → Methods
  7. def Put: String

    Permalink
    Definition Classes
    Methods → Methods
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def chainPaths[A, B](first: Path[A], second: Path[B])(implicit tupler: Tupler[A, B]): Path[Out]

    Permalink
    Definition Classes
    Urls → Urls
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def combineQueryStrings[A, B](first: QueryString[A], second: QueryString[B])(implicit tupler: Tupler[A, B]): QueryString[Out]

    Permalink
    Definition Classes
    Urls → Urls
  12. lazy val emptyHeaders: RequestHeaders[Unit]

    Permalink

    Sets up no headers on the given XMLHttpRequest

    Sets up no headers on the given XMLHttpRequest

    Definition Classes
    Endpoints → Requests
  13. lazy val emptyRequest: RequestEntity[Unit]

    Permalink
    Definition Classes
    Endpoints → Requests
  14. lazy val emptyResponse: Response[Unit]

    Permalink

    Successfully decodes no information from a response

    Successfully decodes no information from a response

    Definition Classes
    Endpoints → Responses
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def get[A, B](url: Url[A], headers: RequestHeaders[B])(implicit tuplerAC: Tupler[A, B]): Request[Out]

    Permalink
    Definition Classes
    Requests
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. implicit lazy val intQueryString: QueryStringParam[Int]

    Permalink
    Definition Classes
    Urls → Urls
  22. implicit lazy val intSegment: Segment[Int]

    Permalink
    Definition Classes
    Urls → Urls
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. implicit lazy val longQueryString: QueryStringParam[Long]

    Permalink
    Definition Classes
    Urls → Urls
  25. implicit lazy val longSegment: Segment[Long]

    Permalink
    Definition Classes
    Urls → Urls
  26. final def muxPerformXhr[Req <: MuxRequest, Resp, Transport](request: Request[Transport], response: Response[Transport], req: Req)(onload: (Either[Throwable, Endpoints.muxPerformXhr.Req.Response]) ⇒ Unit, onError: (XMLHttpRequest) ⇒ Unit)(implicit encoder: Encoder[Req, Transport], decoder: Decoder[Transport, Resp]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Endpoints
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def optQs[A](name: String)(implicit value: QueryStringParam[A]): QueryString[Option[A]]

    Permalink
    Definition Classes
    Urls → Urls
  31. val path: Path[Unit]

    Permalink
    Definition Classes
    Urls
  32. final def performXhr[A, B](request: Request[A], response: Response[B], a: A)(onload: (Either[Exception, B]) ⇒ Unit, onerror: (XMLHttpRequest) ⇒ Unit): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Endpoints
  33. final def post[A, B, C, AB](url: Url[A], entity: RequestEntity[B], headers: RequestHeaders[C])(implicit tuplerAB: Tupler.Aux[A, B, AB], tuplerABC: Tupler[AB, C]): Request[Out]

    Permalink
    Definition Classes
    Requests
  34. def qs[A](name: String)(implicit value: QueryStringParam[A]): QueryString[A]

    Permalink
    Definition Classes
    Urls → Urls
  35. lazy val rawRequestEntity: RequestEntity[RawRequestEntity]

    Permalink

    Sends the entity as it is

    Sends the entity as it is

    Definition Classes
    LowLevelEndpoints → LowLevelEndpoints
  36. lazy val rawResponseEntity: Response[RawResponseEntity]

    Permalink

    Successfully returns the underlying XMLHttpRequest, whatever its status code is

    Successfully returns the underlying XMLHttpRequest, whatever its status code is

    Definition Classes
    LowLevelEndpoints → LowLevelEndpoints
  37. def request[A, B, C, AB](method: Method, url: Url[A], entity: RequestEntity[B], headers: RequestHeaders[C])(implicit tuplerAB: Tupler.Aux[A, B, AB], tuplerABC: Tupler[AB, C]): Request[Out]

    Permalink
    Definition Classes
    Endpoints → Requests
  38. def segment[A](implicit s: Segment[A]): Path[A]

    Permalink
    Definition Classes
    Urls → Urls
  39. def staticPathSegment(segment: String): Path[Unit] with Serializable

    Permalink
    Definition Classes
    Urls → Urls
  40. implicit lazy val stringQueryString: QueryStringParam[String]

    Permalink
    Definition Classes
    Urls → Urls
  41. implicit lazy val stringSegment: Segment[String]

    Permalink
    Definition Classes
    Urls → Urls
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. lazy val textResponse: Response[String]

    Permalink

    Successfully decodes string information from a response

    Successfully decodes string information from a response

    Definition Classes
    Endpoints → Responses
  44. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  45. def urlWithQueryString[A, B](path: Path[A], qs: QueryString[B])(implicit tupler: Tupler[A, B]): Url[Out]

    Permalink
    Definition Classes
    Urls → Urls
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Endpoints

Inherited from Methods

Inherited from Urls

Inherited from algebra.LowLevelEndpoints

Inherited from algebra.Endpoints

Inherited from Responses

Inherited from Requests

Inherited from algebra.Methods

Inherited from algebra.Urls

Inherited from AnyRef

Inherited from Any

Ungrouped