Service

spice.openapi.server.Service
trait Service extends HttpHandler

Attributes

Graph
Supertypes
trait HttpHandler
trait Ordered[HttpHandler]
trait Comparable[HttpHandler]
class Object
trait Matchable
class Any
Show all
Known subtypes
class RestService
class TypedRestService[Req, Res]

Members list

Value members

Concrete methods

def apply(exchange: HttpExchange): Option[ServiceCall]
override def handle(exchange: HttpExchange)(implicit mdc: MDC): Task[HttpExchange]

Attributes

Definition Classes
HttpHandler
def serviceCall[Request, Response](method: HttpMethod, responseTypes: List[ResponseType], summary: String, description: String, successDescription: String, tags: List[String], operationId: Option[String], requestSchema: Option[Schema], responseSchema: Option[Schema])(call: (ServiceRequest[Request]) => Task[ServiceResponse[Response]])(implicit requestRW: RW[Request], responseRW: RW[Response]): ServiceCall

Inherited methods

def <(that: HttpHandler): Boolean

Attributes

Inherited from:
Ordered
def <=(that: HttpHandler): Boolean

Attributes

Inherited from:
Ordered
def >(that: HttpHandler): Boolean

Attributes

Inherited from:
Ordered
def >=(that: HttpHandler): Boolean

Attributes

Inherited from:
Ordered
override def compare(that: HttpHandler): Int

Attributes

Definition Classes
HttpHandler -> Ordered
Inherited from:
HttpHandler
def compareTo(that: HttpHandler): Int

Attributes

Inherited from:
Ordered
def priority: Priority

Attributes

Inherited from:
HttpHandler

Abstract fields

val calls: List[ServiceCall]
val path: URLPath