[][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.

Re-exports

pub use http_types as http;

Structs

Body

A streaming HTTP body.

Handler

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

Request

An HTTP request.

Response

An HTTP response.

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

Status

Provides the status method for Result and Option.

Type Definitions

LoadResult

Attribute Macros

async_trait