ResponseProducer

interface ResponseProducer

Common interface of all Response producing entities

Functions

canHandleRequest
Link copied to clipboard
abstract fun canHandleRequest(request: Metador.Request): Boolean
Returns whether this entity can handle the specified request
produceResponse
Link copied to clipboard
abstract suspend fun produceResponse(request: Metador.Request): Result<Map<String, String>, Throwable>
Produces a response from the specified request.

Inheritors

CachedResponseProducer
Link copied to clipboard
NetworkResponseProducer
Link copied to clipboard