Utilities for actix web
Go to file
Franklin 8c66ec3f10 Sadge commit: Removed read_body::Logger as it was causing errors in the Middleware parsing. TODO: For the future, create your own implementation 2022-08-29 13:01:50 -04:00
src Sadge commit: Removed read_body::Logger as it was causing errors in the Middleware parsing. TODO: For the future, create your own implementation 2022-08-29 13:01:50 -04:00
.gitignore Initial commit 2022-08-22 23:15:46 -04:00
Cargo.lock Sadge commit: Removed read_body::Logger as it was causing errors in the Middleware parsing. TODO: For the future, create your own implementation 2022-08-29 13:01:50 -04:00
Cargo.toml Sadge commit: Removed read_body::Logger as it was causing errors in the Middleware parsing. TODO: For the future, create your own implementation 2022-08-29 13:01:50 -04:00
Readme.md Added readme 2022-08-23 09:56:36 -04:00

Readme.md

Actix-web-utils

by franklin blanco

Adds some useful structs to your typical web app, only compatible with actix-web.

MessageResource

A key-message error type to return back a neat, well formatted error to a frontend. The key is optional, as I won't force you to use internationalization.

TypedHttpResponse

A wrapper for HttpResponse. Contains a type specification inside so that you can visualize and expect a certain type. Said type can only be a Serializable (Json). It can also return a MessageResource or nothing at all.