ResponseHandler

com.sksamuel.elastic4s.ResponseHandler
See theResponseHandler companion object
trait ResponseHandler[U]

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Members list

Value members

Abstract methods

def handle(response: HttpResponse): Either[ElasticError, U]

Accepts a HttpResponse and returns an Either of an ElasticError or a type specific to the request as determined by the instance of this handler.

Accepts a HttpResponse and returns an Either of an ElasticError or a type specific to the request as determined by the instance of this handler.

Attributes

Concrete methods

def map[V](fn: U => V): ResponseHandler[V]