Crate impulse_utils

Crate impulse_utils 

Source
Expand description

Bunch of fullstack utils.

Modules§

errors
Implementation of optional private errors for salvo and client errors for reqwest.
prelude
Fast access to nice things.
requests
Implementation of utilities for working with MessagePack with requests in salvo and reqwest.
responses
Implementation of utilities for working with responses in salvo and reqwest.
results
Result types for ServerError (impulse-server-kit) and ClientError (impulse-ui-kit) errors.

Macros§

file_upload
File response.
fn_name
Macro to define the function that called the response.
html
Returns given HTML code.
json
Serializes to JSON and returns given object.
msgpack
Serializes to MsgPack and returns given object.
ok
Returns empty 200 OK response.
plain
Returns given plain text.