[−][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 |
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 |
json | Returns a json Response from an arbitrary serializable value. |
jsonr | Returns a json Response from an anonymous record. All fields must be Serialize. |
Type Definitions
FsFuture | The opaque future returned by filesystem and filesystem_path. |