package elastic4s
- Alphabetic
- Public
- All
Type Members
-
trait
BodyBuilder[R] extends AnyRef
A typeclass that is used to build the json bodies for requests.
A typeclass that is used to build the json bodies for requests.
They accept a request instance, such as CountRequest or SearchRequest and return a JsonValue which models the json to be used.
- class DefaultResponseHandler[U] extends ResponseHandler[U]
-
case class
ElasticRequest(method: String, endpoint: String, params: Map[String, String], entity: Option[HttpEntity], headers: Map[String, String]) extends Product with Serializable
An ElasticRequest models all the required fields for a request to be sent to Elasticsearch.
An ElasticRequest models all the required fields for a request to be sent to Elasticsearch.
Request types such as SearchRequest, etc, are ultimately converted into this class by means of a Handler typeclass instance.
-
abstract
class
Handler[T, U] extends AnyRef
A Handler is a typeclass used to create ElasticRequest instances from elastic4s models, which are the sent to the elasticsearch server, as well as returning a ResponseHandler which handles the response from the server.
A Handler is a typeclass used to create ElasticRequest instances from elastic4s models, which are the sent to the elasticsearch server, as well as returning a ResponseHandler which handles the response from the server.
- T
the type of the request object handled by this handler
- U
the type of the response object returned by this handler
- sealed trait HttpEntity extends AnyRef
-
case class
HttpResponse(statusCode: Int, entity: Option[StringEntity], headers: Map[String, String]) extends Product with Serializable
The response passed to the callabck of a HttpClient.
- class NotFound404ResponseHandler[U] extends DefaultResponseHandler[U]
- trait ResponseHandler[U] extends AnyRef
Value Members
- object CountBodyBuilder
- object ElasticRequest extends Serializable
- object ElasticUrlEncoder
- object EnumConversions
- object HttpEntity
- object ResponseHandler