[][src]Module hyperbole::reply

Helpers for replying to requests.

Modules

sse

Server sent events.

Enums

FsError

A filesystem error.

Traits

Reply

A type that can be converted into an http Response.

Functions

extract

Handle a request by extracting a Reply from the request context.

filesystem

Handle a request by serving a file from the filesystem. The file path to be served will be the request uri path appended to base_path.

filesystem_path

Handle a request by serving a file from the filesystem. Unlike filesystem, the file path to be served will be the named field path: String appended to base_path.

json

Returns a json Response from an arbitrary serializable value.

jsonr

Returns a json Response from an hlist of Serialize named fields.

redirect

Returns a redirect response to the provided path.

Type Definitions

FsFuture

The opaque Future returned by filesystem and filesystem_path.