Crate vila

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§

header
HTTP header types
pagination
Constructs for wrapping a paginated API.

Structs§

Client
The main client used for making requests.
EmptyResponse
Struct symbolizing an empty response from the server.
Method
The Request Method (VERB)
StatusCode
An HTTP status code (status-code in RFC 7230 et al.).

Enums§

Error
Possible errors in the request-response lifecycle.
RequestData
Additional data to be sent along with the request.

Traits§

Request
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.