[][src]Crate valor_core

Valor

A lightweight HTTP plugin system that runs in the server and the browser.

  • Use valor_bin to run your Rust and JS(soon!) plugins in the server.
  • Use valor_web as a script imported from the main document or a worker in your web application to have a local API powered by a service worker.

Structs

Handler

The main entry point for dispatching incoming requests to plugins registered under a specific URL prefix.

Url

A parsed URL record.

Enums

LoadError

Errors loading a plugin

Method

HTTP request methods.

Plugin

Plugin information

StatusCode

HTTP response status codes.

Traits

Loader

A Loader can fetch plugin handlers from various sources such as the network or the file system

RequestHandler

Request handlers only job is to respond to http requests

Type Definitions

LoadResult
Request
Response

Attribute Macros

async_trait