Trait

endpoints.documented.delegate

Assets

Related Doc: package delegate

Permalink

trait Assets extends algebra.Assets with Endpoints

Interpreter for algebra.Assets that ignores information related to documentation and delegates to another endpoints.algebra.Assets interpreter.

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

Type Members

  1. type AssetPath = algebra.Assets.AssetPath

    Permalink

    The path of the asset

    The path of the asset

    Definition Classes
    AssetsAssets
  2. type AssetRequest = algebra.Assets.AssetRequest

    Permalink

    An HTTP request to retrieve an asset

    An HTTP request to retrieve an asset

    Definition Classes
    AssetsAssets
  3. type AssetResponse = algebra.Assets.AssetResponse

    Permalink

    An HTTP response containing an asset

    An HTTP response containing an asset

    Definition Classes
    AssetsAssets
  4. type Endpoint[A, B] = algebra.Assets.Endpoint[A, B]

    Permalink

    Information carried by an HTTP endpoint

    Information carried by an HTTP endpoint

    Definition Classes
    EndpointsEndpoints
  5. type Method = algebra.Assets.Method

    Permalink
    Definition Classes
    Methods → Methods
  6. type MuxEndpoint[Req <: MuxRequest, Resp, Transport] = algebra.Assets.MuxEndpoint[Req, Resp, Transport]

    Permalink

    Information carried by a multiplexed HTTP endpoint.

    Information carried by a multiplexed HTTP endpoint.

    Definition Classes
    EndpointsEndpoints
  7. type Path[A] = algebra.Assets.Path[A]

    Permalink

    An URL path carrying an A information

    An URL path carrying an A information

    Definition Classes
    UrlsUrls
  8. implicit class PathOps[A] extends AnyRef

    Permalink

    Convenient methods for Paths.

    Convenient methods for Paths.

    Definition Classes
    Urls
  9. type QueryString[A] = algebra.Assets.QueryString[A]

    Permalink

    A query string carrying an A information

    A query string carrying an A information

    Definition Classes
    UrlsUrls
  10. implicit class QueryStringOps[A] extends AnyRef

    Permalink

    Provides convenient methods on QueryString.

    Provides convenient methods on QueryString.

    Definition Classes
    Urls
  11. type QueryStringParam[A] = algebra.Assets.QueryStringParam[A]

    Permalink

    A single query string parameter carrying an A information.

    A single query string parameter carrying an A information.

    Definition Classes
    UrlsUrls
  12. type Request[A] = algebra.Assets.Request[A]

    Permalink

    Information carried by a whole request (headers and entity)

    Information carried by a whole request (headers and entity)

    Definition Classes
    RequestsRequests
  13. type RequestEntity[A] = algebra.Assets.RequestEntity[A]

    Permalink

    Information carried by request entity

    Information carried by request entity

    Definition Classes
    RequestsRequests
  14. type RequestHeaders[A] = algebra.Assets.RequestHeaders[A]

    Permalink

    Information carried by requests’ headers

    Information carried by requests’ headers

    Definition Classes
    RequestsRequests
  15. type Response[A] = algebra.Assets.Response[A]

    Permalink

    Information carried by a response

    Information carried by a response

    Definition Classes
    ResponsesResponses
  16. type Segment[A] = algebra.Assets.Segment[A]

    Permalink

    An URL path segment carrying an A information.

    An URL path segment carrying an A information.

    Definition Classes
    UrlsUrls
  17. type Url[A] = algebra.Assets.Url[A]

    Permalink

    An URL carrying an A information

    An URL carrying an A information

    Definition Classes
    UrlsUrls

Abstract Value Members

  1. abstract val delegate: algebra.Assets

    Permalink
    Definition Classes
    AssetsEndpointsResponsesRequestsMethodsUrls

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: Method

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

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

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

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

    Permalink
    Definition Classes
    Any
  9. def assetSegments(name: String): Path[AssetPath]

    Permalink

    A Path that extracts an AssetPath from all the path segments.

    A Path that extracts an AssetPath from all the path segments.

    Consider the following definition:

    val assets = assetsEndpoint(get(path / "assets" / assetsSegments))

    Then, here is how the following requests are decoded: - /assets/foo => foo - /assets/foo/bar => foo/bar

    Definition Classes
    AssetsAssets
  10. def assetsEndpoint(url: Url[AssetPath], documentation: String, notFoundDocumentation: String): Endpoint[AssetRequest, AssetResponse]

    Permalink

    url

    URL description

    returns

    An HTTP endpoint serving assets

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

    Permalink

    Chains the two paths

    Chains the two paths

    Definition Classes
    UrlsUrls
  12. def clone(): AnyRef

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

    Permalink

    Concatenates two QueryStrings

    Concatenates two QueryStrings

    Definition Classes
    UrlsUrls
  14. def digests: Map[String, String]

    Permalink

    The digests of the assets

    The digests of the assets

    Definition Classes
    AssetsAssets
  15. def emptyHeaders: RequestHeaders[Unit]

    Permalink

    No particular information.

    No particular information. Does not mean that the headers *have to* be empty. Just that, from a server point of view no information will be extracted from them, and from a client point of view no particular headers will be built in the request.

    Definition Classes
    RequestsRequests
  16. def emptyRequest: RequestEntity[Unit]

    Permalink

    Empty request.

    Empty request.

    Definition Classes
    RequestsRequests
  17. def emptyResponse(documentation: String): Response[Unit]

    Permalink

    Empty response.

    Empty response.

    Definition Classes
    ResponsesResponses
  18. def endpoint[A, B](request: Request[A], response: Response[B]): Endpoint[A, B]

    Permalink

    HTTP endpoint.

    HTTP endpoint.

    request

    Request

    response

    Response

    Definition Classes
    EndpointsEndpoints
  19. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink

    Helper method to perform GET request

    Helper method to perform GET request

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. implicit def intQueryString: QueryStringParam[Int]

    Permalink

    Ability to define Int query string parameters

    Ability to define Int query string parameters

    Definition Classes
    UrlsUrls
  26. implicit def intSegment: Segment[Int]

    Permalink

    Ability to define Int path segments

    Ability to define Int path segments

    Definition Classes
    UrlsUrls
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def longQueryString: QueryStringParam[Long]

    Permalink

    Query string parameter containing a Long value

    Query string parameter containing a Long value

    Definition Classes
    UrlsUrls
  29. implicit def longSegment: Segment[Long]

    Permalink

    Segment containing a Long value

    Segment containing a Long value

    Definition Classes
    UrlsUrls
  30. def muxEndpoint[Req <: MuxRequest, Resp, Transport](request: Request[Transport], response: Response[Transport]): MuxEndpoint[Req, Resp, Transport]

    Permalink

    Multiplexed HTTP endpoint.

    Multiplexed HTTP endpoint.

    A multiplexing endpoint makes it possible to use several request and response types in the same HTTP endpoint. In other words, it allows to define several different actions through a singe HTTP endpoint.

    Req

    The base type of possible requests

    Resp

    The base type of possible responses

    Transport

    The data type used to transport the requests and responses

    request

    The request

    response

    The response

    Definition Classes
    EndpointsEndpoints
  31. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink

    Builds a QueryString with one optional parameter of type A.

    Builds a QueryString with one optional parameter of type A.

    name

    Parameter’s name

    Definition Classes
    UrlsUrls
  35. val path: Path[Unit]

    Permalink

    An empty path.

    An empty path.

    Useful to begin a path definition:

    path / "foo" / segment[Int]("some-value")
    Definition Classes
    Urls
  36. final def post[A, B, C, AB](url: Url[A], entity: RequestEntity[B], headers: RequestHeaders[C] = emptyHeaders)(implicit tuplerAB: Tupler.Aux[A, B, AB], tuplerABC: Tupler[AB, C]): Request[Out]

    Permalink

    Helper method to perform POST request

    Helper method to perform POST request

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

    Permalink

    Builds a QueryString with one parameter.

    Builds a QueryString with one parameter.

    A

    Type of the value carried by the parameter

    name

    Parameter’s name

    Definition Classes
    UrlsUrls
  38. def request[A, B, C, AB](method: Method, url: Url[A], entity: RequestEntity[B] = emptyRequest, headers: RequestHeaders[C] = emptyHeaders)(implicit tuplerAB: Tupler.Aux[A, B, AB], tuplerABC: Tupler[AB, C]): Request[Out]

    Permalink

    Request for given parameters

    Request for given parameters

    method

    Request method

    url

    Request URL

    Definition Classes
    RequestsRequests
  39. def segment[A](name: String)(implicit s: Segment[A]): Path[A]

    Permalink

    Builds a path segment carrying an A information

    Builds a path segment carrying an A information

    name

    Name for the segment (for documentation)

    Definition Classes
    UrlsUrls
  40. def staticPathSegment(segment: String): Path[Unit]

    Permalink

    Builds a static path segment

    Builds a static path segment

    Definition Classes
    UrlsUrls
  41. implicit def stringQueryString: QueryStringParam[String]

    Permalink

    Ability to define String query string parameters

    Ability to define String query string parameters

    Definition Classes
    UrlsUrls
  42. implicit def stringSegment: Segment[String]

    Permalink

    Ability to define String path segments

    Ability to define String path segments

    Definition Classes
    UrlsUrls
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def textResponse(documentation: String): Response[String]

    Permalink

    Text response.

    Text response.

    Definition Classes
    ResponsesResponses
  45. def toString(): String

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

    Permalink

    Builds an URL from the given path and query string

    Builds an URL from the given path and query string

    Definition Classes
    UrlsUrls
  47. final def wait(): Unit

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

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

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

Inherited from Endpoints

Inherited from Responses

Inherited from Requests

Inherited from Methods

Inherited from Urls

Inherited from algebra.Assets

Inherited from algebra.Endpoints

Inherited from algebra.Responses

Inherited from algebra.Requests

Inherited from algebra.Methods

Inherited from algebra.Urls

Inherited from AnyRef

Inherited from Any

Ungrouped