Requester

algoliasearch.config.Requester
trait Requester extends AutoCloseable

Represents a mechanism for executing HTTP requests and deserializing responses using JSON4S. It provides methods for making requests and returning the desired object representation. Implementations of this trait should ensure proper resource management.

Attributes

Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def execute[T : Manifest](httpRequest: HttpRequest, requestOptions: Option[RequestOptions]): T

Executes an HTTP request and deserializes the response into a specified Scala type.

Executes an HTTP request and deserializes the response into a specified Scala type.

Type parameters

T

The type of the returned object.

Value parameters

httpRequest

The HTTP request to be executed.

requestOptions

Optional request options.

Attributes

Returns

The deserialized response.

Inherited methods

def close(): Unit

Attributes

Inherited from:
AutoCloseable