API Reference Dowser.Client v#0.2.0

View Source

Modules

Top-level convenience helpers shared across the Dowser family.

Low-level entry point for querying a search backend over HTTP.

One search backend to talk to: its :endpoint, :auth, the :httpc profile to send through, and how to cast the responses it returns.

The optional second pass over a decoded response body.

The optional pass over a document source in a request body, before it is JSON-encoded.

Generic Dowser client error.

The HTTP transport: OTP's :httpc, and nothing else.

HTTP transport error.

Manages the :httpc profiles Dowser.Client.HTTP sends requests through.

Builds the :ssl options Dowser.Client.HTTP hands to :httpc for an https:// URL.

Stubs HTTP requests in tests.

JSON encoding and decoding, on Elixir's built-in JSON module.

JSON encoding or decoding error.

Encode and decode NDJSON (newline-delimited JSON), the payload format of bulk-indexing and multi-search style APIs.

A fully-resolved HTTP request, ready to hand to Dowser.Client.HTTP.

A normalized HTTP response.

Generic retry policy for transient HTTP failures.

Applies a function to every key of a term, however deeply nested — through maps, lists and MapSets; any other term passes through unchanged.