Skip to main content

Module client

Module client 

Source
Expand description

Links Notation REST client (specification section 10).

Built on reqwest, so it talks to any service that speaks the wire protocol, whichever language implements it.

Structs§

LinoClient
A client for a service that speaks Links Notation.
LinoResponse
A decoded response.
RequestOptions
Everything a single call may add to a request.

Enums§

LinoClientError
Anything that can go wrong while talking to a service.

Constants§

DEFAULT_ACCEPT
Default Accept sent by the client: Links Notation first, JSON as a fallback.
DESCRIPTION_PATH
Path of the native service description (specification section 9).

Functions§

create_lino_client
Create a client, for symmetry with the other packages.
decode_response
Decode a response body according to its own Content-Type (section 10).