Skip to main content

Module responses

Module responses 

Source
Expand description

Implementation of utilities for working with responses in salvo and reqwest.

Structs§

File
Sends 200 and file.
Html
Sends 200 and HTML.
Json
Sends 200 and JSON.
MsgPack
Sends 200 and MsgPack.
OK
Sends 200 without data.
Plain
Sends 200 and plain text.

Traits§

CollectServerError
Trait to recover public errors from server.
ExplicitServerWrite
Trait that utilizes only mutable reference to Response and makes no need for Request/Depot.
MsgPackResponse
Trait to parse MessagePack responses from reqwest library.
RedirectServerError
Trait to recover public errors from server.