package http
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- case class AcceptHeader(value: String) extends SpecificHeader with Product with Serializable
- final case class Body(s: String) extends AnyVal with Product with Serializable
- case class ContentType(value: String) extends SpecificHeader with Product with Serializable
- case class Domain(protocol: Protocol, host: HostName, port: Port) extends Product with Serializable
- trait EndpointPath[T] extends (ServiceResponse) => Option[T]
- trait Failer[Fail] extends ResponseParserFailer[Fail] with SimpleFailer[Fail]
- trait FromEditXingYi[Req, Dom <: script.Domain, Res] extends AnyRef
- trait FromServiceRequest[M[_], T] extends (ServiceRequest) => M[T]
- Annotations
- @implicitNotFound("Missing FromServiceRequest[${T}]This is how we create a query/request (${T}) from an external clients HTTP request. It is isolated from exactly which webframework we are using.")
- trait FromServiceResponse[T] extends (ServiceResponse) => T
- Annotations
- @implicitNotFound("Missing FromServiceResponse[${T}] This creates a(${T}) from a service response returned by a client call. The simplest way to implement this is to have the domain object companion extend DomainCompanionObject and have a 'FromJson[${T}]' in the scope. This allows all decisions about which JSON library we are using to be dealt with outside the main business logic")
- trait FromXingYi[Req, Res] extends (IXingYi) => (Req) => (String) => Res
- trait Header extends AnyRef
- case class HostName(host: String) extends UriFragment with Product with Serializable
- trait HttpFactory[M[_], HttpReq, HttpRes] extends (ServiceName) => (HttpReq) => M[HttpRes]
- trait HttpKlesili[M[_]] extends AnyRef
- sealed trait Method extends AnyRef
- case class Path(path: String) extends UriFragment with Product with Serializable
- case class Port(port: Int) extends UriFragment with Product with Serializable
- case class Protocol(protocol: String) extends UriFragment with Product with Serializable
- class ProtocolException extends Exception
- case class ProtocolHostAndPort(protocol: Protocol, hostName: HostName, port: Port) extends Product with Serializable
- case class QueryParam(name: QueryParamName, value: QueryParamValue) extends UriFragment with Product with Serializable
- class QueryParamException extends Exception
- case class QueryParamName(name: String) extends UriFragment with Product with Serializable
- case class QueryParamValue(value: String) extends UriFragment with Product with Serializable
- case class RequestAndServiceResponse[Req](req: Req, serviceResponse: ServiceResponse) extends Product with Serializable
- trait ResponseCategoriser[Req] extends AnyRef
- trait ResponseParser[Req, Res] extends AnyRef
- trait ResponseParserFailer[Fail] extends AnyRef
- final case class ServiceName(name: String) extends AnyVal with Product with Serializable
- case class ServiceRequest(method: Method, domain: Option[Domain], path: Path, params: Seq[QueryParam], headers: Seq[Header], body: Option[Body]) extends Product with Serializable
- case class ServiceResponse(status: Status, body: Body, headers: List[Header]) extends Product with Serializable
- trait SimpleFailer[Fail] extends AnyRef
- case class SimpleHeader(name: String, value: String) extends Header with Product with Serializable
- abstract class SpecificHeader extends Header
- final case class Status(code: Int) extends AnyVal with Product with Serializable
- trait ToServiceRequest[T] extends (T) => ServiceRequest
- Annotations
- @implicitNotFound("""Missing ToServiceRequest[${T}] This is how we turn a query/request object (${T}) into a HTTP request. If ${T} is a http request have """)
- trait ToServiceResponse[Req, T] extends (Req) => (T) => ServiceResponse
- Annotations
- @implicitNotFound("""Missing ToServiceResponse[${T}] This turns ${T} into a service response so that it can be shown to the user. The simplest way to implement this is to have a 'ToJson[${T}]' in the scope.
To debug this you can have the following code
val x = implicitly[ToJson[${T}]]
val y = implicitly[ToServiceResponse]
""")
- case class Uri(domain: Option[Domain], path: Path, params: QueryParam*) extends UriFragment with Product with Serializable
- trait UriFragment extends AnyRef
Value Members
- case object Delete extends Method with Product with Serializable
- object Failer
- object FromServiceRequest
- object FromServiceResponse extends JsonWriterLanguage
- case object Get extends Method with Product with Serializable
- case object Head extends Method with Product with Serializable
- object Header extends JsonWriterLanguage
- object Headers
- object HttpFactory
- object Method
- case object Options extends Method with Product with Serializable
- case object Post extends Method with Product with Serializable
- case object Put extends Method with Product with Serializable
- object QueryParam extends Serializable
- object ResponseCategoriser
- object ResponseParser
- object ServiceRequest extends Serializable
- object ServiceResponse extends JsonWriterLanguage with Serializable
- object Status extends Serializable
- object ToServiceRequest
- object ToServiceResponse
- object Uri extends Serializable