Crate vila

source · []
Expand description

vila is a library for building strongly typed REST clients, with built-in capabilites for authentication, various request and response types and pagination.

Originally inspired by ring-api

Modules

HTTP header types

Constructs for wrapping a paginated API.

Structs

The main client used for making requests.

Struct symbolizing an empty response from the server.

The Request Method (VERB)

An HTTP status code (status-code in RFC 7230 et al.).

Enums

Possible errors in the request-response lifecycle.

Additional data to be sent along with the request.

Traits

The base-trait for requests sent by the client. The trait specifies the full life-cycle of the request, including the endpoint, headers, data, method and eventual response.