package http

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. http
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Package Members

  1. package internals

Type Members

  1. final class CaseInsensitive extends Ordered[CaseInsensitive] with Serializable
  2. sealed abstract class HttpBinding extends Product with Serializable
  3. sealed trait HttpContractError extends Throwable with NoStackTrace
  4. sealed trait HttpDiscriminator extends Product with Serializable
  5. trait HttpEndpoint[I] extends AnyRef
  6. type HttpMediaType = http.HttpMediaType.Type
  7. sealed trait HttpMethod extends Product with Serializable
  8. type HttpPayloadDecoder[A] = Decoder[[β$0$]Either[HttpContractError, β$0$], Blob, A]
  9. case class HttpPayloadError(path: PayloadPath, expected: String, message: String) extends Throwable with HttpContractError with Product with Serializable
  10. final case class HttpRequest[+A](method: HttpMethod, uri: HttpUri, headers: Map[CaseInsensitive, Seq[String]], body: A) extends Product with Serializable
  11. final case class HttpResponse[+A](statusCode: Int, headers: Map[CaseInsensitive, Seq[String]], body: A) extends Product with Serializable
  12. sealed trait HttpRestSchema[A] extends AnyRef

    This construct indicates how a schema is split between http metadata (ie headers, path parameters, query parameters, status code) and body.

    This construct indicates how a schema is split between http metadata (ie headers, path parameters, query parameters, status code) and body.

    When the input or the output of an http operation has some elements that are coming from the body and some elements that are coming from the metadata, the schema is split in two schemas that each track the relevant subset.

    The partial data resulting from the successful decoding of both subsets can be reconciled to recover the total data.

    On the encoding side, the split allows to only encode the relevant subset of data as http headers, and the other subset as http body.

  13. trait HttpStatusCode[A] extends AnyRef

    Typeclass construct allowing to retrieve the status code associated to a value.

  14. final case class HttpUri(scheme: HttpUriScheme, host: String, port: Option[Int], path: IndexedSeq[String], queryParams: Map[String, Seq[String]], pathParams: Option[Map[String, String]]) extends Product with Serializable
  15. sealed trait HttpUriScheme extends AnyRef
  16. case class Metadata(path: Map[String, String] = Map.empty, query: Map[String, Seq[String]] = Map.empty, headers: Map[CaseInsensitive, Seq[String]] = Map.empty, statusCode: Option[Int] = None) extends Product with Serializable

    Datatype containing metadata associated to a http message.

    Datatype containing metadata associated to a http message.

    The metadata is what is found in the http headers, and can be derived from the http path, the query parameters, or the headers.

    Associated to it are a pair of Encoder/Decoder typeclasses, that can be derived from a schema.

    path

    the path parameters of the http message

    query

    the query parameters of the http message

    headers

    the header parameters of the http message

  17. sealed trait MetadataError extends Throwable with HttpContractError
  18. type PathParams = Map[String, String]
  19. sealed trait PathSegment extends AnyRef
  20. case class UnknownErrorResponse(code: Int, headers: Map[CaseInsensitive, Seq[String]], body: String) extends Throwable with Product with Serializable
  21. final case class UrlForm(values: List[FormData]) extends Product with Serializable

    Represents data that was encoded using the application/x-www-form-urlencoded format.

  22. final case class UrlFormDecodeError(path: PayloadPath, message: String) extends Throwable with Product with Serializable

Value Members

  1. val amazonErrorTypeHeader: String
  2. val errorTypeHeader: String
  3. final def httpMatch[Alg[_[_, _, _, _, _]]](service: Service[Alg], method: HttpMethod, pathSegments: IndexedSeq[String]): Option[(Service.Endpoint[_, _, _, _, _], HttpEndpoint[_], Map[String, String])]

    Returns the first http endpoint that matches both a method and path, as well as the map of extracted segment values.

  4. final def httpMatch[Alg[_[_, _, _, _, _]]](service: Service[Alg], method: HttpMethod, path: String): Option[(Service.Endpoint[_, _, _, _, _], HttpEndpoint[_], Map[String, String])]
  5. object CaseInsensitive extends Serializable
  6. object HttpBinding extends Companion[HttpBinding] with Serializable
  7. object HttpContractError extends Serializable
  8. object HttpDiscriminator extends Serializable
  9. object HttpEndpoint
  10. object HttpErrorSelector

    Utility function to help find the decoder matching a certain discriminator This is useful when deserializing on the client side of a request/response round trip.

  11. object HttpHostPrefix
  12. object HttpMediaType extends Newtype[String]
  13. object HttpMethod extends Serializable
  14. object HttpPayloadError extends Serializable
  15. object HttpRequest extends Serializable
  16. object HttpResponse extends Serializable
  17. object HttpRestSchema
  18. object HttpStatusCode extends Impl[HttpStatusCode]
  19. object HttpUnaryClientCodecs
  20. object HttpUnaryServerCodecs
  21. object HttpUnaryServerRouter
  22. object HttpUriScheme
  23. object Metadata extends Serializable
  24. object MetadataError extends Serializable
  25. object PathSegment
  26. object UrlForm extends Serializable
  27. object matchPath extends ScalaCompat

Inherited from AnyRef

Inherited from Any

Ungrouped