pub type Prepare = Box<dyn PrepareCall>;
Expand description
A prepare extension.
Keep in mind you have to supply the response content type in the headers. Kvarn defaults to HTML.
You also have to handle all the methods (except HEAD
). So, if you ignore methods, your
endpoint will behave the same regardless of if the client sends a POST
or GET
request.
Can be created using the prepare!
macro.
Requires an object which implements the PrepareCall
trait. See it for details on arguments.
See module level documentation and kvarn.org for more info.
Aliased Typeยง
struct Prepare(/* private fields */);