Expand description
The transport seam between providers and the network.
Providers build HttpRequests and map HttpResponses; they never own
a client. The engine supplies the HttpClient, which is where per-request
pacing, timeouts and the user agent live, so every provider gets the same
politeness for free. Tests supply a client that replays recorded fixtures.
A client returns Ok for any HTTP response, whatever the status; only
transport failures (connection, TLS, timeout) are Err. Mapping statuses
to Errors is provider knowledge.
Structs§
Enums§
Traits§
Functions§
- escape_
lucene - Escapes Lucene/Solr query syntax in user text (DataCite, Open Library), so “BERT: Pre-training” is searched as words, not parsed as a field query.
- path_
segment - Escapes an identifier for use in a URL path, leaving
/and:literal: APIs expect/works/doi:10.1038/nature14539as written, but DOIs may contain#,?or<>, which must not be taken as URL syntax.