Package-level declarations

Types

Link copied to clipboard
interface HttpAutocompleteService<T> : AutocompleteService<T>

Represents an autocomplete service that uses an HTTP endpoint to search for suggestions.

Link copied to clipboard
typealias SearchEndpoint<T> = HttpApiEndpoint<String, List<T>>

Represents an HTTP endpoint that can be used to search for autocomplete suggestions.

Functions

Link copied to clipboard
fun <T> HttpAutocompleteService(searchEndpoint: SearchEndpoint<T>, json: Json = HttpApiEndpoint.json(), client: HttpClient = HttpApiEndpoint.httpClient(json)): HttpAutocompleteService<T>

Creates an HttpAutocompleteService that uses the specified searchEndpoint to search for autocomplete suggestions.